Split exporter plugin into UI and logic