Some more refactoring of init. settings.

Moved more code from the giant loop into "value processing."