[8.x] Properly mark attributes as deprecated