Break up the field display
Improve comments
Stop leaking variable values between loop iterations
Drop the else{} clause

We’ll always satisfy the if(), because it’s from our source YAML.
Misc. cleanup
Save the YAML group name as the DT class