refactoring : extracting render functions for text on colored background