Trim unneeded headers