Use a module variable rather than a function so client code can set the value rather than having to monkey patch.