[[ Cocoa ]] Refactored ColorTransforms to platform.