Moved color logic to lamp class.