Refactors the controllers to move code for managing user data into a new service