This if block repeats in many places of PR. What do you think about making abstraction like it's made for `update_many_attributes` and `update_single_attribute` methods?