Adds @Deprecated info to ObjectField.