Factoring the code.