Extract main from CSV type provider to separate module