Split header parsing into separate file.