Remove unnecessary code from REPL