REST architecture refactoring starting