Make Fraction code a little more DRY.