Collapse all the variants of Resize::process_xx into a single function