Simplify removeItem() function