Initial color transform refactoring