diff --git a/replicate.module b/replicate.module
index 735ce3d..b43edf1 100644
--- a/replicate.module
+++ b/replicate.module
@@ -5,15 +5,14 @@
  * Main methods of Replicate module.
  */
 
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\replicate\Hook\ReplicateHooks;
 use Drupal\Core\Routing\RouteMatchInterface;
 
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function replicate_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    case 'help.page.replicate':
-      // Return a line-break version of the module README.md.
-      return check_markup(file_get_contents(__DIR__ . "/README.md"));
-  }
+  return \Drupal::service(ReplicateHooks::class)->help($route_name, $route_match);
 }
diff --git a/replicate.services.yml b/replicate.services.yml
index 4da8090..2d20262 100644
--- a/replicate.services.yml
+++ b/replicate.services.yml
@@ -11,3 +11,7 @@ services:
     arguments: ['@entity_type.manager', '@uuid', '@replicate.replicator' ]
     tags:
       - { name: event_subscriber }
+
+  Drupal\replicate\Hook\ReplicateHooks:
+    class: Drupal\replicate\Hook\ReplicateHooks
+    autowire: true
diff --git a/src/Hook/ReplicateHooks.php b/src/Hook/ReplicateHooks.php
new file mode 100644
index 0000000..f4e5a02
--- /dev/null
+++ b/src/Hook/ReplicateHooks.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Drupal\replicate\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Hook\Attribute\Hook;
+
+/**
+ * Hook implementations for replicate.
+ */
+class ReplicateHooks {
+
+  /**
+   * Implements hook_help().
+   */
+  #[Hook('help')]
+  public static function help($route_name, RouteMatchInterface $route_match) {
+    switch ($route_name) {
+      case 'help.page.replicate':
+        // Return a line-break version of the module README.md.
+        return [
+          '#type' => 'processed_text',
+          '#text' => file_get_contents(__DIR__ . "/README.md"),
+        ];
+    }
+  }
+
+}
diff --git a/tests/src/Kernel/ReplicateLayoutBuilderSubscriberTest.php b/tests/src/Kernel/ReplicateLayoutBuilderSubscriberTest.php
index 59578f5..f6554d9 100644
--- a/tests/src/Kernel/ReplicateLayoutBuilderSubscriberTest.php
+++ b/tests/src/Kernel/ReplicateLayoutBuilderSubscriberTest.php
@@ -2,6 +2,8 @@
 
 namespace Drupal\Tests\replicate\Kernel;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\block_content\Entity\BlockContent;
 use Drupal\block_content\Entity\BlockContentType;
 use Drupal\entity_test\Entity\EntityTestMulRevPub;
@@ -18,6 +20,8 @@ use Drupal\layout_builder\SectionListInterface;
  *
  * @group replicate
  */
+#[Group('replicate')]
+#[RunTestsInSeparateProcesses]
 class ReplicateLayoutBuilderSubscriberTest extends KernelTestBase {
 
   /**
diff --git a/tests/src/Unit/ReplicateLayoutBuilderSubscriberTest.php b/tests/src/Unit/ReplicateLayoutBuilderSubscriberTest.php
index 673898e..a80d208 100644
--- a/tests/src/Unit/ReplicateLayoutBuilderSubscriberTest.php
+++ b/tests/src/Unit/ReplicateLayoutBuilderSubscriberTest.php
@@ -2,6 +2,8 @@
 
 namespace Drupal\Tests\replicate\Unit;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\DataProvider;
 use Drupal\block\BlockInterface;
 use Drupal\Component\Uuid\UuidInterface;
 use Drupal\Core\Entity\EntityInterface;
@@ -26,6 +28,7 @@ use Prophecy\Prophet;
  * @coversDefaultClass \Drupal\replicate\EventSubscriber\ReplicateLayoutBuilderSubscriber
  * @group replicate
  */
+#[Group('replicate')]
 class ReplicateLayoutBuilderSubscriberTest extends UnitTestCase {
 
   /**
@@ -82,6 +85,7 @@ class ReplicateLayoutBuilderSubscriberTest extends UnitTestCase {
    *
    * @dataProvider replicateAfterSaveFieldableEntityProvider
    */
+  #[DataProvider('replicateAfterSaveFieldableEntityProvider')]
   public function testReplicateAfterSaveFieldableEntity(FieldableEntityInterface $entity): void {
     $block = $this->prophesize(BlockInterface::class);
     // Using prophecy here will throw Exception: "Serialization of 'Closure' is
diff --git a/tests/src/Unit/ReplicatorTest.php b/tests/src/Unit/ReplicatorTest.php
index 0daf3ae..276567b 100644
--- a/tests/src/Unit/ReplicatorTest.php
+++ b/tests/src/Unit/ReplicatorTest.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\Tests\replicate\Unit;
 
+use PHPUnit\Framework\Attributes\Group;
 use Drupal\Core\Entity\EntityInterface;
 use Drupal\Core\Entity\EntityTypeManagerInterface;
 use Drupal\Core\Entity\FieldableEntityInterface;
@@ -21,6 +22,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
  * @coversDefaultClass \Drupal\replicate\Replicator
  * @group replicate
  */
+#[Group('replicate')]
 class ReplicatorTest extends UnitTestCase {
 
   /**
