RotoItem: use smart pointers