diff --git a/entity_preprocess_services.info.yml b/entity_preprocess_services.info.yml
index fc6eb2b..704cd2d 100644
--- a/entity_preprocess_services.info.yml
+++ b/entity_preprocess_services.info.yml
@@ -1,5 +1,5 @@
 name: 'Entity Preprocess Services'
 type: module
 description: 'Adds a module which allows users to preprocess entities using services instead of only hooks.'
-core_version_requirement: ^8.8 || ^9 || ^10 || ^11
+core_version_requirement: ^10.1 || ^11 || ^12
 package: Theming
diff --git a/entity_preprocess_services.module b/entity_preprocess_services.module
index 7aa9afe..00c6197 100644
--- a/entity_preprocess_services.module
+++ b/entity_preprocess_services.module
@@ -5,6 +5,8 @@
  * The main module file for the entity_preprocess_services.
  */
 
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\entity_preprocess_services\Hook\EntityPreprocessServicesHooks;
 use Drupal\Core\Cache\CacheableMetadata;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Routing\RouteMatchInterface;
@@ -12,42 +14,25 @@ use Drupal\Core\Routing\RouteMatchInterface;
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function entity_preprocess_services_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    case 'help.page.entity_preprocess_services':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('This module provides a way for developers to use services instead of hooks for preprocess services.') . '</p>';
-      $output .= '<p>' . t('See the project page for more information.') . '</p>';
-      return $output;
-  }
+  return \Drupal::service(EntityPreprocessServicesHooks::class)->help($route_name, $route_match);
 }
 
 /**
  * Implements hook_preprocess_node().
  */
+#[LegacyHook]
 function entity_preprocess_services_preprocess_node(array &$variables) {
-  /** @var \Drupal\node\NodeInterface $node */
-  $node = $variables['node'];
-
-  _entity_preprocess_services_preprocess_entity(
-    $variables,
-    $node,
-    $variables['elements']['#view_mode']
-  );
+  \Drupal::service(EntityPreprocessServicesHooks::class)->preprocessNode($variables);
 }
 
 /**
  * Implements hook_preprocess_paragraph().
  */
+#[LegacyHook]
 function entity_preprocess_services_preprocess_paragraph(array &$variables) {
-  $paragraph = $variables['paragraph'];
-
-  _entity_preprocess_services_preprocess_entity(
-    $variables,
-    $paragraph,
-    $variables['elements']['#view_mode']
-  );
+  \Drupal::service(EntityPreprocessServicesHooks::class)->preprocessParagraph($variables);
 }
 
 /**
diff --git a/entity_preprocess_services.services.yml b/entity_preprocess_services.services.yml
index 8c76762..f67aecf 100644
--- a/entity_preprocess_services.services.yml
+++ b/entity_preprocess_services.services.yml
@@ -3,3 +3,7 @@ services:
   entity_preprocess_services.manager:
     class: Drupal\entity_preprocess_services\EntityPreprocessServicesManager
     arguments: ['@service_container']
+
+  Drupal\entity_preprocess_services\Hook\EntityPreprocessServicesHooks:
+    class: Drupal\entity_preprocess_services\Hook\EntityPreprocessServicesHooks
+    autowire: true
diff --git a/modules/entity_preprocess_services_example/entity_preprocess_services_example.info.yml b/modules/entity_preprocess_services_example/entity_preprocess_services_example.info.yml
index cc5718f..8ce0734 100644
--- a/modules/entity_preprocess_services_example/entity_preprocess_services_example.info.yml
+++ b/modules/entity_preprocess_services_example/entity_preprocess_services_example.info.yml
@@ -2,6 +2,6 @@ name: 'Entity Preprocess Services - Example'
 type: module
 description: 'Adds an example module on how to use entity preprocess services module.'
 package: Theming
-core_version_requirement: ^8.8 || ^9 || ^10
+core_version_requirement: ^10.1 || ^11 || ^12
 dependencies:
   - entity_preprocess_services:entity_preprocess_services
diff --git a/src/Hook/EntityPreprocessServicesHooks.php b/src/Hook/EntityPreprocessServicesHooks.php
new file mode 100644
index 0000000..023f2ef
--- /dev/null
+++ b/src/Hook/EntityPreprocessServicesHooks.php
@@ -0,0 +1,49 @@
+<?php
+
+namespace Drupal\entity_preprocess_services\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+
+/**
+ * Hook implementations for entity_preprocess_services.
+ */
+class EntityPreprocessServicesHooks {
+  use StringTranslationTrait;
+
+  /**
+   * Implements hook_help().
+   */
+  #[Hook('help')]
+  public function help($route_name, RouteMatchInterface $route_match) {
+    switch ($route_name) {
+      case 'help.page.entity_preprocess_services':
+        $output = '';
+        $output .= '<h3>' . $this->t('About') . '</h3>';
+        $output .= '<p>' . $this->t('This module provides a way for developers to use services instead of hooks for preprocess services.') . '</p>';
+        $output .= '<p>' . $this->t('See the project page for more information.') . '</p>';
+        return $output;
+    }
+  }
+
+  /**
+   * Implements hook_preprocess_node().
+   */
+  #[Hook('preprocess_node')]
+  public function preprocessNode(array &$variables) {
+    /** @var \Drupal\node\NodeInterface $node */
+    $node = $variables['node'];
+    _entity_preprocess_services_preprocess_entity($variables, $node, $variables['elements']['#view_mode']);
+  }
+
+  /**
+   * Implements hook_preprocess_paragraph().
+   */
+  #[Hook('preprocess_paragraph')]
+  public function preprocessParagraph(array &$variables) {
+    $paragraph = $variables['paragraph'];
+    _entity_preprocess_services_preprocess_entity($variables, $paragraph, $variables['elements']['#view_mode']);
+  }
+
+}
