call-channel: remove duplicated code