Refactored some code into a service.