The logic in ExtensionRegistry and ExtensionProcessor is very much like the logic in SettingsBuilder. Similarly, the idea and structure of settings files is very much like extension.json files.
Ideally, we should use the same mechanism for loading settings files and extension definitions. This would ensure consistent behavior and minimize code duplication.