Refactoring of URL patterns