Collected initializations into setuo()

They were scattered all over the place, and some called repeatedly. Now
they’re called only once, in setup().