Removed redundant code for url patterns