refactoring google docs exporter