Refactor setChannelGlobalMinMax() logic