Moves repl code to treasure instead of app.