Refactor the media[-col]-ready code to loop through the printer's media sizes and lookup the (smaller) list of ready sizes.
Refactor the media[-col]-ready code to loop through the printer's media sizes and lookup the (smaller) list of ready sizes.

OpenPrinting/cups,OpenPrinting/cups,OpenPrinting/cups,OpenPrinting/cups