def METHOD_NAME(proto, field, data):
    format_dispatch = {
        'ipv4': to_ipv4,
        'ipv6': to_ipv6,
        'mac': to_mac,
        'number': to_number,
        'enumeration': to_enumeration
    }
    prop = dict()
    if 'format' in data and data['format'] in format_dispatch:
        prop.update(format_dispatch[data['format']](proto, field, data))
    else:
        prop.update(to_number(proto, field, data))
    return prop