Refactor the way headers are generated in all the drivers.