Simplify Quaternion->Euler conversion code