Simplifying fractions

What ComplexityFunction (or other technique) can I use to have Mathematica pull things out of fractions?

I have a rational function of several variables and I'd like to have Math'ca simplify, e.g.,

x(... + y(... + wz)) + ...
--------------------------
xyz


to

x(... + y(...)) + ....
---------------------- + w
xyz


? I've already told it that the relevant variables (in the denominator) are nonzero.

I was thinking of counting complexity as LeafCount plus the LeafCount of numerators, but I'm not sure how to do that.

-
Will Apart do what you want? –  murray Apr 30 at 14:17

eqn = x (5 + a + y (6 + b + w z))/(x y z);