Refactoring StatReporter.