[RegionDefiner] Change code according to API changes