Makes doMath even DRYer.