Though, you could do away with `m` by instead comparing `factors` to `new_factors`