Define and incorporate task_route_boilerplate code