Refactoring the model REST calls