Bring content migration into main.scala and use fold to eradicate var.

Fewer files like this and less cognitive overhead.