Add deprecation warning.