yt.units.unit_object.Unit.refine

Unit.refine(assumption=True)

See the refine function in sympy.assumptions