Refactor blog routes to improve maintainability