Refactor restful helper method initialization