Small RESTful refactoring