Add object syntax to deprecate