Move coloring-related routines to different files
Refactor bits of inspector code
Split partitioner from coloring