Lucene 4.9 dropped the AttributeFactory, this task is in preparation for Lucene 4.9 upgrades. While not enough to be fully compatible with Lucene 4.9, this makes it possible to upgrade if you don't use specific advanced features.