Refactor event building code into LogEventBuilder