@classmethod
def parseKwargs(cls, config_psf, logger):
    """Parse the psf field of a configuration dict and return the kwargs to use for
        initializing an instance of the class.

        :param config_psf:      The psf field of the configuration dict, config['psf']
        :param logger:          A logger object for logging debug info. [default: None]

        :returns: a kwargs dict to pass to the initializer
        """
    import piff
    kwargs = {}
    kwargs.update(config_psf)
    kwargs.pop('type', None)
    for key in ['model', 'interp']:
        if key not in kwargs:
            raise ValueError(
                '%s field is required in psf field for type=Simple' % key)
    model = piff.Model.process(kwargs.pop('model'), logger=logger)
    kwargs['model'] = model
    interp = piff.Interp.process(kwargs.pop('interp'), logger=logger)
    kwargs['interp'] = interp
    if 'outliers' in kwargs:
        outliers = piff.Outliers.process(kwargs.pop('outliers'), logger=logger)
        kwargs['outliers'] = outliers
    return kwargs
