Move the flag references into init().

Also eliminates the struct assignment; the `var config Config` line creates the instance with the fields already in their zero values.