remove duplicate method

This method is already present in helper.rb
Merge pull request #11646 from neerajdotname/remove_duplicate_method

remove duplicate method