Refactoring Bisiness Logic of AppRestService