Modify Set for deprecation warnings in 1.8.0.