Added migration method for various MathBase derived classes