Setup the CollectionFactory