Moved UI model classes to the portable core.