Moved chester file parsing code into its own class.