Refactored more out to color.c.