`moonEarthMassRatio` and `factor` are constants as well.  We should move them to module scope if that is going to make any difference for performance.