Removed a bunch of $wgTitle calls, because $wgTitle is EVIL!

Change-Id: I909c2965d4dcafabf1db77c67c4cc5f0edfa259f
(cherry picked from commit 172f44101082f90e59032977fbe6329da09e02bc)