Refactored InitializingService and ServiceContainer