refactor(core): Abstract away InstanceSettings and encryptionKey
into injectable services (no-changelog)
#7471
+499
−1,068