[Refactoring] Remove unused code around header generation