Reduce dependency on $wgExtMobileFrontend

Change-Id: Id21bfc41bf5b173f00607e01c424b24ab7272d5f
Merge "Reduce dependency on $wgExtMobileFrontend"