Factor some stuff