refactoring out titanium