Use set for DEPRECATED_PACKAGES instead of list