Allow users to specify a connection factory