Write smaller, cleaner AngularJS services