Refactor "sqrtx".