Simplify `kill_events` and `restore_events` macro files.