Adds deprecation notice.