CLN: remove _to_M8
a couple of recently-merged PRs removed the last usages of this function
Thanks, lgtm.  Would be nice to merge on green since there is a linting error related to this on `master` that's breaking CI.  I opened #30837 to fix it but this is more complete so I'll close that in favor of this.