def METHOD_NAME(cls, url):
    url = urlparse(url)
    query = parse_qs(url.query)
    url = url._replace(query=None)
    query = {key: value[0] for key, value in query.items()}
    return url.geturl(), query