Can we factor out this logic? I see it 5 times.
Sounds like a DelegateCombineFileInputFormat.setInputFormat(conf) that would do this logic.