Factory previous class deleted