Moved dumping functionality into an Export class