Centralized deprecation code.