I see the same pattern could also be applied in a few other places.
The goal would be to keep the templates very straightforward, and free of logic if possible.