def removeScopes(line):
    """Return a VB line with the scopes removed

    This helps in the structure explorer, where the scopes get in the way
    and make the line appear very long.

    """
    potentials = [
        "Sub ", "Function ", "Property ",
    ]
    for item in potentials:
        if item in line:
            return '{}{}'.format(item, line.split(item, 1)[1])
    else:
        return line