Refactor: Replace ServiceManagerServiceFactory invocations with direct ones.