discover/resource: create_url_resource should take ownership of url