split out stat_factory file"