Fix mixup of Formula.factory <=> Factory.formula