def METHOD_NAME(mapping):
    for field_mapping in mapping["properties"].values():
        if "include_in_all" in field_mapping:
            if field_mapping["include_in_all"]:
                field_mapping["copy_to"] = self.all_field_name
                if "boost" in field_mapping:
                    # added to unique_boosts to avoid duplicate fields, or cases like 2.0 and 2
                    unique_boosts.add(field_mapping["boost"])
                    field_mapping["copy_to"] = [
                        field_mapping["copy_to"],
                        self.get_boost_field_name(field_mapping["boost"]),
                    ]
                    del field_mapping["boost"]
            del field_mapping["include_in_all"]
        if field_mapping["type"] == "nested":
            METHOD_NAME(field_mapping)