MADS: Refactoring calls to PaletteUsage::process, and initial bugfixes