Refactor Large File handling code.