Reorganize some REPL related code