Introduce a Set interface and refactor to meet it.