Simplify the lucene serialize workflow.