This should always be safe to do and may be required depending on the method we are hijacking. I did not do this previously due to differences in 2.7 and later versions of ruby but now that ruby 2.7 is no longer supported it makes sense to do this everywhere.