Refactor export of products of csv.