Start refactoring some parts of the interface system in c++.