Refactoring out StatisticType