MADS: Simplified code for PaletteUsage::prioritize