Factor knowledge of input and output IOs out of trim_to_pane