Moved variation equations to a a set of static helper methods.