def maskout_protodef(protodef, mask):
    """
    Returns a new protodef after removing protodef values based on mask
    """
    protodef = dict(protodef)
    for m in mask:
        if m in protodef:
            protodef.pop(m)
    return protodef