extract patients seed factory from patients