fix(factories): Use toFactory instead of toFactoryPos everywhere.