This PR moves the Ruby injections added in #8796 to the right location, since Ruby support was extracted into an extension in #11360. Release Notes: - N/A