Fixed unnamespaced code in TaskRouteHandler