Refactoring 'Select Statistic'.