Split off the formatter into its own file.