Refactors namespace to resource and uses segment over route_param.