Remove some copypaste in ActionView::Helpers::Tags::Base

This method doesn't look really cool right now
https://github.com/rails/rails/blob/master/actionview/lib/action_view/helpers/tags/base.rb#L74

We can remove all the copypaste.