Refactor to EventData::toArray()