For ENG-6247, first stab at refactoring export streaming so it can be used for DR