Add AND Remove Users from Groups based on fields

Add AND Remove Users from Groups based on fields

I have a automation setup to add people to a security / distribution group based on their department. However when their department changes it adds them to the new departments security group and leaves them in the old. 

Is there a way to have it remove them from the old as well?

                New to ADSelfService Plus?