Move logic for updating a user into a service class