@classmethod
def factory(cls, out_dir, groups_dict):
    """
        Generate dictionary of MultiYearGroup objects for all groups in groups

        Parameters
        ----------
        out_dir : str
            Output directory, used for Pipeline handling
        groups_dict : dict
            Dictionary of group parameters, parsed from multi-year config file

        Returns
        -------
        groups : dict
            Dictionary of MultiYearGroup objects for each group in groups
        """
    groups = {}
    for name, kwargs in groups_dict.items():
        groups[name] = cls(name, out_dir, **kwargs)
    return groups
