Simplify using set operations.