Refactor get_turf proc.