convert some more interpolations
convert large jinja stanza to pre-computed interpolation
convert more of complicated stanza from jinja2
convert more of duplicated stanza
convert another stanza
get rid of bounding conditional
remove for loop
remove unused conditional
use appropriate form of interpolated variable
replace remaining interpolated vars