Item13125: Move monkey patching to BEGIN blocks