Refactoring.  Move the functionality for each log format into its own class.