Added a way to override what type of PaletteBuilder is used.