model UrlCodes refactoring