Move ColorMapper from top dir into /types, declare missing dependency in LegendView