Refactoring ArrayExporter class