Routing. Refactor processing to routes.