def METHOD_NAME(value: str) -> str:
    """Return the value used to lookup a DID in the wallet.
    If value is did:sov, return the unqualified value. Else, return value.
    """
    return value.split(":", 3)[2] if value.startswith("did:sov:") else value