In "unlink_covariate", don't try to delete a covariate from the
trait's covariate list before destroying it: the SQL UPDATE statement
triggered by a delete will be prevented by the
"restrict_covariate_range" trigger function if the level attribute of
the covariate is out of range and will trigger an exception.