Remove ActiveRecord and mutex from REPL class