Cleaned up the "/repl" handler.