Part of #118145. Use the BMesh functions instead of the sculpt attribute API which we intend to remove.