diff --git a/none_title.info.yml b/none_title.info.yml
index 6020a78..a5fca14 100644
--- a/none_title.info.yml
+++ b/none_title.info.yml
@@ -4,4 +4,4 @@ package: Node
 dependencies:
   - drupal:node
 type: module
-core_version_requirement: ^9.1 || ^10 || ^11
+core_version_requirement: ^10.1 || ^11 || ^12
diff --git a/none_title.module b/none_title.module
index 3dcff9c..e7106fb 100644
--- a/none_title.module
+++ b/none_title.module
@@ -6,50 +6,33 @@
  *
  * This is the main module file for None Title.
  */
-
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\none_title\Hook\NoneTitleHooks;
 use Drupal\node\NodeInterface;
 use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
  * Implements hook_preprocess_field().
  */
+#[LegacyHook]
 function none_title_preprocess_field(&$vars) {
-  if ($vars['element']['#field_name'] == 'title' &&
-      $vars['element']['#object'] instanceof NodeInterface) {
-    foreach ($vars['items'] as &$item) {
-      $item['content']['#context']['value'] = (trim($item['content']['#context']['value']) == '<none>')
-        ? '' :
-        $item['content']['#context']['value'];
-    }
-  }
+  \Drupal::service(NoneTitleHooks::class)->preprocessField($vars);
 }
 
 /**
  * Implements hook_views_plugins_field_alter().
  */
-function none_title_views_plugins_field_alter(array &$plugins) {
-  $plugins['field']['class'] = 'Drupal\none_title\Plugin\views\field\EntityField';
-  $plugins['field']['provider'] = 'none_title';
+#[LegacyHook]
+function none_title_views_plugins_field_alter(array &$plugins)
+{
+    \Drupal::service(NoneTitleHooks::class)->viewsPluginsFieldAlter($plugins);
 }
 
 /**
  * Implements hook_help().
  */
-function none_title_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    case 'help.page.none_title':
-      $text = file_get_contents(dirname(__FILE__) . '/README.md');
-      if (!\Drupal::moduleHandler()->moduleExists('markdown')) {
-        return '<pre>' . $text . '</pre>';
-      }
-      else {
-        // Use the Markdown filter to render the README.
-        $filter_manager = \Drupal::service('plugin.manager.filter');
-        $settings = \Drupal::configFactory()->get('markdown.settings')->getRawData();
-        $config = ['settings' => $settings];
-        $filter = $filter_manager->createInstance('markdown', $config);
-        return $filter->process($text, 'en');
-      }
-  }
-  return NULL;
+#[LegacyHook]
+function none_title_help($route_name, RouteMatchInterface $route_match)
+{
+    return \Drupal::service(NoneTitleHooks::class)->help($route_name, $route_match);
 }
diff --git a/none_title.services.yml b/none_title.services.yml
new file mode 100644
index 0000000..fc0c972
--- /dev/null
+++ b/none_title.services.yml
@@ -0,0 +1,5 @@
+
+services:
+  Drupal\none_title\Hook\NoneTitleHooks:
+    class: Drupal\none_title\Hook\NoneTitleHooks
+    autowire: true
diff --git a/src/Hook/NoneTitleHooks.php b/src/Hook/NoneTitleHooks.php
new file mode 100644
index 0000000..dfff2fd
--- /dev/null
+++ b/src/Hook/NoneTitleHooks.php
@@ -0,0 +1,58 @@
+<?php
+
+namespace Drupal\none_title\Hook;
+
+use Drupal\node\NodeInterface;
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+/**
+ * Hook implementations for none_title.
+ */
+class NoneTitleHooks
+{
+    /**
+     * Implements hook_preprocess_field().
+     */
+    #[Hook('preprocess_field')]
+    public function preprocessField(&$vars)
+    {
+        if ($vars['element']['#field_name'] == 'title' && $vars['element']['#object'] instanceof \Drupal\node\NodeInterface) {
+            foreach ($vars['items'] as &$item) {
+                $item['content']['#context']['value'] = trim($item['content']['#context']['value']) == '<none>' ? '' : $item['content']['#context']['value'];
+            }
+        }
+    }
+    /**
+     * Implements hook_views_plugins_field_alter().
+     */
+    #[Hook('views_plugins_field_alter')]
+    public function viewsPluginsFieldAlter(array &$plugins)
+    {
+        $plugins['field']['class'] = 'Drupal\none_title\Plugin\views\field\EntityField';
+        $plugins['field']['provider'] = 'none_title';
+    }
+    /**
+     * Implements hook_help().
+     */
+    #[Hook('help')]
+    public function help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+    {
+        switch ($route_name) {
+            case 'help.page.none_title':
+                $text = file_get_contents(dirname(__FILE__) . '/README.md');
+                if (!\Drupal::moduleHandler()->moduleExists('markdown')) {
+                    return '<pre>' . $text . '</pre>';
+                } else {
+                    // Use the Markdown filter to render the README.
+                    $filter_manager = \Drupal::service('plugin.manager.filter');
+                    $settings = \Drupal::configFactory()->get('markdown.settings')->getRawData();
+                    $config = [
+                        'settings' => $settings,
+                    ];
+                    $filter = $filter_manager->createInstance('markdown', $config);
+                    return $filter->process($text, 'en');
+                }
+        }
+        return NULL;
+    }
+}
diff --git a/tests/src/Functional/NoneTitleTest.php b/tests/src/Functional/NoneTitleTest.php
index 4e8f5a4..7310408 100644
--- a/tests/src/Functional/NoneTitleTest.php
+++ b/tests/src/Functional/NoneTitleTest.php
@@ -2,6 +2,8 @@
 
 namespace Drupal\Tests\none_title\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Tests\BrowserTestBase;
 
 /**
@@ -11,6 +13,8 @@ use Drupal\Tests\BrowserTestBase;
  *
  * @group NoneTitleTest
  */
+#[Group('NoneTitleTest')]
+#[RunTestsInSeparateProcesses]
 class NoneTitleTest extends BrowserTestBase {
 
   /**
