I think I might be slightly inclined to make this a class rather than a module.  Then you could pass the settings to the constructor, and you wouldn't have to have all of these module-level methods that all required the settings as an arg.

I don't want to spend much more time on this right now, though, so maybe you can just make a jira suggesting that we do that in the future.