Refactor ApiEventDetails