Avoid a local Twine variable.

Harmless in this case but potentially dangerous if it gets extended some day.
Avoid storing Twines.

While there nested ifs into a helper function. No functionality change.