Revert "Merge branch 'bug_9025' into 3.12-master"

This reverts commit 081e1ba4c31151db8a3c52a8daa96931a5ac544f, reversing
changes made to 7e25faace8d70c2e81272cb3eacd41fa7215719d.