Refactor getDefaultWeightUnit().