refactor event_reporter.rb