Dynamically exclude extensions in the same call or pickup group when calling queue

One year ago I was looking for a way to suppress calls to the same extension:

Now I’m asking myself if it is possible to do the same, but with call or pickup groups. Maybe one of you is already using something like that or has an idea how to realize this.

Any idea would be appreciated.