Refactor BadiffFileDiff header code.