Remove math template system.