Remove type_id arguments from Event::new and UIEvent::new.