Remove ruby 1.8 dependency code