Refactor Exporter.