Remove hardcoded color matrices and compute the matrices using the cms helper library that was in cogcolorspace before.