Move the routing defnition to the routing alter method.