The Math extension needs to be converted to use the new extension registration system. More details are available on T87875.
The proposed patch replaces integer constants with strings but maintains backwards compatibility. Note that this changes the cache key and could therefore generate a load spike. Therefore operations was added in the Projects field.