Make module compatible with Drupal 9.