I'd move these helpers to ```repl_util```.