Remove inherited attributes with same value