delete old factory class