Minor refactoring
Group gravitational consts into a record.
Eliminate some repetition in getgravconst