Change service to factory.