Factor the polynomial function p⁡(x)=x3−2⁢x2−4⁢x2+8⁢x.