BHV-705: change rules for removing allow-wrap class