How to use StateUpdate to avoid serving certain number of shipments over all routes?

Hi there,
I have a set of shipments. I would like to generate vehicles routes on a subset of shipments. In other word, some shipments are somehow connected, and once one of such shipments is served I want to oblige jsprit not to serve other connected shipments (force them to be unassigned). I have been successful on not serving them on the same route using HardActivityConstraints but they are served on other routes. To avoid this I used state updater but I have not been successful. I was wondering if anyone has a successful experience on this topic.

Thanks in advance.