Prettier factoring