Support line item expansion on CSV export.
Move toCSV into own method.