Remove unused languages added along with MathCAT inclusion - Cherry-pick for beta (#19488)
ollow-up of #19484
Summary of the issue:
#19484 has been merged to master, while the goal was to merge it in beta. This PR is a cherry-pick of #19484 in beta branch.
Description of user facing changes:
N/A
Description of developer facing changes:
See #19484