Factored out generate_consensus_files into it's own module