Refactor "colour.adaptation.cat" module.