Simplify item set closure function