\Drupal calls should be avoided in classes, use dependency injection instead in core/modules/update/src/Form classes