Extract colour support to helper

Colour code lookup is now implemented in a seperate module.