There is another method for doing that, which is called canonicalize_radical.
sage: y = (sin(x) + 2) * sqrt(sin(x) / (sin(x)^2 + 4 * sin(x) + 4))