Refactored most of the resource manipulation out of the controller and into the service.