factor out metadata in lucene41pf