Avoid monkey-patching when it isn't necessary.