Refactoring the Video Export module