Add a deprecation warning.