Remove middleware and just use the routing logic.