Extract constants in Formatting

Extract colorcode dictionaries that don't need to be assigned with
every method call.