Deprecating update_attribute by cherry-picking b081f6b59fb3f15d12043072ad9b331ffd2bc56e and tweaking it a bit