First refactoring to seperate the schemes view and model from the historyview and model.