CXX-188 extract connection factory as parameter