Simplify and fix aprts of exporters/importer.

Fix aac29aa668125760d041e4644d3e4548f26c139d.
parts+= *is* *a* *nightmare*.