Deprecate old attribute syntax

It has been a warning for almost 2 years.