def mk_subdict_extractor(fields):
    """Makes a function that generates field-inclusion defined subdicts from a dict iterator."""

    def extract(dict_list):
        for dd in dict_list:
            yield {k: dd[k] for k in fields}

    return extract