The logic to color the text is inside the methods but in cases like this where many colors are applied to a method's output coloring after the fact would be rather hard. 

So now the responsibility of knowing how to color text is left to the method which creates that text.