Move `Channel::opt_anchors` to `ChannelContext` impl & move some util fns