Remove unnecessary uses of Class#hash in Ruby driver