Rationalize configuration passing

Perhaps pass around the `conf` object rather than a bunch of random stuff from it...

(Not sure this is an improvement, but it could in some places).