Move service factory registration to module.