This is a follow-up to #37075, because I didn't manage to finish my review before the PR got merged. PR Close #37040