import re


def untorontoify(term):
    """Return a version of the term with "Toronto" removed.

    Useful if the name in OSM is something like "Union Square (Toronto)"
    or "Toronto City Hall".
    """
    return re.sub(r'^Toronto ', '', re.sub(r' \(Toronto\)', '', term))