Encodes logic of how to handle named-vector and functional palettes. Used primarily within embeddingGroupPlot()
Useful links