As I was investigating an approach for #16488, I stumbled upon two methods partially doing the same thing. This helps consolidate the logic and provides some guiding documentation.