Extract prepend detection into RubyFeatures.