This change is not correct.  boundary and admin_level should not be set on boundary member ways.  They should only be applied to boundary relations.

For example https://www.openstreetmap.org/way/37572312