Cleaned up the way routes are configured.