Make monkey patching depend on how configatron is required