Revert Math extension to 1bb3bfa3b5656

Change-Id: I748c53b8343bf761922881f07a5cb23f6f75fade
Merge "Revert Math extension to 1bb3bfa3b5656" into wmf/1.24wmf8