Removes duplicate code

Removes code that was already available as a method in the TokenHelper class.