Provide a better implementation for routes