Refactored CategoryService to place remote calls in a separate class