The `*_event` functions as well as the `channel_from_*` functions duplicate some code.