Move colour mapping into lamps module.