Fixing a typo

Changed `factor` to `factory`