scripts/channels: refactor f87af65