Remove the code to guarantee backwards-compatibility with some older versions:
https://github.com/gitlabhq/terraform-provider-gitlab/blob/b3f88599446367aed2353dac0b4a1bf9e67d4bfe/internal/provider/resource_gitlab_project_variable.go#L76