Some refactoring for code clarity in ColorMixing algorithm.