I think that threading config through function calls like this isn't scalable, but I'm interested in possible ways of doing config.