Refactoring, IEventsSerializer, StatisticsCreator