If this logic is used in two places, it should be abstracted inside VET so we can use it here also.