Refactor i_get_csv_data