Small refactor of convert_epr_txt_to_red_csv