Refactoring headers method for ArrayExporter class