Extracting formatters to a utility class