Separate a REPL function and an initializer.