@classmethod
def _remove_keys(cls, parent_dict, paths):
    """
        Remove a list of keys from a dictionary.

        Keys are specified as a series of `.` separated paths for keys in child
        dictionaries, e.g 'parent_key.child_key.grandchild_key'.
        """
    for path in paths:
        keys = cls._path_to_keys(path)
        child_dict = parent_dict
        for key in keys[:-1]:
            child_dict = child_dict.get(key)
            if child_dict is None:
                break
        if child_dict is None:
            continue
        if keys[-1] in child_dict:
            child_dict.pop(keys[-1])
