Both factorizations are correct.