Refactor some update_attributes params.