Fix typo: "factor" -> "factory"