Factor out RTT sampler setting in its own function.