extract method to determine if colors should be disabled

Signed-off-by: Jenny Chou <jchou@pivotallabs.com>