Refactor standard line formatters.