Extract generic formatting options to an helper.
Authored by: jplang 2013-11-23
Parent: [r12318]
Child: [r12320]