def METHOD_NAME(self, key, facet, clean_data):
    clean_data[key] = {"name": facet["name"], "results": []}
    for field_value, count in self.facet_counts["fields"][key]:
        field_name = "%s_exact" % facet["field"]
        is_faceted_already = field_name in self.selected_facets
        datum = {
            "name": field_value,
            "count": count,
            # We don't show facet counts if a this field is already being
            # faceted (as we don't know them)
            "show_count": not is_faceted_already,
            "disabled": count == 0 and not is_faceted_already,
            "selected": False,
        }
        if field_value in self.selected_facets.get(field_name, []):
            # This filter is selected - build the 'deselect' URL
            datum["selected"] = True
            url = self.base_url.remove_query_param(
                "selected_facets", "%s:%s" % (field_name, field_value)
            )
            datum["deselect_url"] = self.strip_pagination(url)
        else:
            # This filter is not selected - built the 'select' URL
            url = self.base_url.append_query_param(
                "selected_facets", "%s:%s" % (field_name, field_value)
            )
            datum["select_url"] = self.strip_pagination(url)
        clean_data[key]["results"].append(datum)