Introducing IndexDaoFactory.
Refactoring.