Clean up URL patterns