Extracted REPL history and provided an interface for it.
Injecting REPLHistory