Might it not make sense to invert the parity of the environment variable and require its being set for do_by to be used? I imagine most would rather set an environment variable in their dev environment than ensure it gets set in every possible production instance... :/
As much as 'turning off asserts' is the classical style, that's more to do with the design of older instrumentation than the sanity of it.