MADS: Refactoring PaletteUsage to use external data arrays