Simplify getting the repl connection by a step.