factor out metadata for lucene40pf