Get rid of termsOfuse hook and helper function

Related patch in WikimediaMessage extension: https://gerrit.wikimedia.org/r/#/c/142628/

Change-Id: I1afcde9f079dc1f44c0c212b2cd4849815a6c111
Merge "Get rid of termsOfuse hook and helper function"