Fix factory method retains.