Clean up CSV-to-table conversion