Refactor url_create