Refactor and redesign DefaultServiceManager.