Correlation of crystal quality and extreme magnetoresistance of WTe2