ERT-652 Added exporter to figure out export method
ERT-652 Refactor out the export logic from the GUI