A conversion function to CMYK

I would like to add a conversion function to CMYK while preserving RGB status to Photo AI.