Move helper to `repl_util`.