Minor refactoring to provide the basis to loading extensions in the shared core.