Factorization test questions x(x+y-z)+y(x+y-z)+z(z-x-y)

Factorization test questions x(x+y-z)+y(x+y-z)+z(z-x-y)

x(x+y-z)+y(x+y-z)+z(z-x-y)
=x(x+y-z)+y(x+y-z)-z(x+y-z)
=(x+y-z)(x+y-z)
=(x+y-z)^2