Generalize exporting process