Move GlobalCoreContext definitions to source file