Refactor Logger#color.