Refactor restful helper method generation from method missing to a class