Remove redundant code from the link_helpers.js and view_helpers.rb files.