Removed deprecated patch_object.