small refactoring related to exporting Items as CSV file