def split_headers(user_headers, properties_set):
    """Split bitfield properties from named headers."""
    props = {}
    headers = {}
    for key, value in user_headers.iteritems():
        if key in properties_set:
            props[key] = value
        else:
            headers[key] = value
    return props, headers
