Convert between export formats.

STUD-1196
.
Code review feedback (will squash later).
Code review feedback (will squash later).