Document conditions under which coloring won't occur, and simplify the code.