Extracting CSV parsing into smaller objects