Break bodyNodes into one function per case.

This method is often target of customization which is not possible without
that modularization.