def split_to_field_and_filter_type(filter_name):
    filter_split = filter_name.split(OPERATOR_SEPARATOR)
    filter_type = filter_split[-1] if len(filter_split) > 0 else None

    if filter_type in ALL_OPERATORS:
        return OPERATOR_SEPARATOR.join(filter_split[:-1]), filter_type
    else:
        return filter_name, None