moving closure of service manager factory out of configuration file to module