better way of identifying daoFactories