:+1:  i like methods nesting. I quickly search for what community has to say about when and when not to use nested methods.

so there are 2 considerations to do before you nest a method:
1. Are the intermediate variables needed?
2. Which approach provides the best clarity?

and the above solution for sure provides best clarity, as well as intermediate variables are not needed there.