Add @deprecated decorator.