Split read_channel_params() into its own function.