Correctly handle namespaces that span multiple headers.