Converting custom object controllers to use service