Refactoring multitouch