diff --git a/assembly.module b/assembly.module
index 79a1e03..e3bf3e8 100644
--- a/assembly.module
+++ b/assembly.module
@@ -5,7 +5,8 @@
  * @file
  * Contains assembly.module.
  */
-
+use Drupal\Core\Hook\Attribute\LegacyHook;
+use Drupal\assembly\Hook\AssemblyHooks;
 use Drupal\Core\Routing\RouteMatchInterface;
 use Drupal\Core\Field\FieldStorageDefinitionInterface;
 use Drupal\assembly\Entity\AssemblyInterface;
@@ -17,35 +18,18 @@ use Drupal\Core\Cache\Cache;
 /**
  * Implements hook_help().
  */
+#[LegacyHook]
 function assembly_help($route_name, RouteMatchInterface $route_match) {
-  switch ($route_name) {
-    // Main module help for the assembly module.
-    case 'help.page.assembly':
-      $output = '';
-      $output .= '<h3>' . t('About') . '</h3>';
-      $output .= '<p>' . t('Compose rich content with modular elements using Assembly') . '</p>';
-      return $output;
-
-    default:
-  }
+  return \Drupal::service(AssemblyHooks::class)->help($route_name, $route_match);
 }
 
 /**
  * Implements hook_theme().
  */
-function assembly_theme() {
-  $theme = [];
-  $theme['assembly'] = [
-    'render element' => 'elements',
-    'file' => 'assembly.page.inc',
-    'template' => 'assembly',
-  ];
-  $theme['assembly_content_add_list'] = [
-    'render element' => 'content',
-    'variables' => ['content' => NULL],
-    'file' => 'assembly.page.inc',
-  ];
-  return $theme;
+#[LegacyHook]
+function assembly_theme()
+{
+    return \Drupal::service(AssemblyHooks::class)->theme();
 }
 
 /**
@@ -196,18 +180,10 @@ function assembly_get_references($id) {
 /**
  * Implements hook_entity_extra_field_info().
  */
-function assembly_entity_extra_field_info() {
-  $extra = [];
-  foreach (AssemblyType::loadMultiple() as $bundle) {
-    $extra['assembly'][$bundle->id()]['form']['references'] = [
-      'label' => t('References'),
-      'description' => t('Show other entities that reference this assembly'),
-      'visible' => TRUE,
-      'weight' => 99,
-    ];
-  }
-
-  return $extra;
+#[LegacyHook]
+function assembly_entity_extra_field_info()
+{
+    return \Drupal::service(AssemblyHooks::class)->entityExtraFieldInfo();
 }
 
 function _assembly_get_assembly_revision_fields($limit_entity_type = '', $limit_bundle = '') {
@@ -271,12 +247,10 @@ function _assembly_entity_form_references_field($entity) {
 /**
  * Implements hook_compose_add_existing_row_data().
  */
-function assembly_compose_add_existing_row_data() {
-  $entities['assembly']['used_in'] = [
-    'label' => t('Used In'),
-    'callback' => 'assembly_compose_existing_data'
-  ];
-  return $entities;
+#[LegacyHook]
+function assembly_compose_add_existing_row_data()
+{
+    return \Drupal::service(AssemblyHooks::class)->composeAddExistingRowData();
 }
 
 function assembly_compose_existing_data($entity) {
diff --git a/assembly.services.yml b/assembly.services.yml
index 7e76389..e870cfc 100644
--- a/assembly.services.yml
+++ b/assembly.services.yml
@@ -2,3 +2,7 @@ services:
   plugin.manager.assembly_build:
     class: Drupal\assembly\Plugin\AssemblyBuildManager
     parent: default_plugin_manager
+
+  Drupal\assembly\Hook\AssemblyHooks:
+    class: Drupal\assembly\Hook\AssemblyHooks
+    autowire: true
diff --git a/src/Controller/AssemblyController.php b/src/Controller/AssemblyController.php
index 019ceb8..3072286 100644
--- a/src/Controller/AssemblyController.php
+++ b/src/Controller/AssemblyController.php
@@ -2,6 +2,7 @@
 
 namespace Drupal\assembly\Controller;
 
+use Drupal\Component\Utility\DeprecationHelper;
 use Drupal\Component\Utility\Xss;
 use Drupal\Core\Controller\ControllerBase;
 use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
@@ -106,7 +107,7 @@ class AssemblyController extends ControllerBase implements ContainerInjectionInt
             '#template' => '{% trans %}{{ date }} by {{ username }}{% endtrans %}{% if message %}<p class="revision-log">{{ message }}</p>{% endif %}',
             '#context' => [
               'date' => $link,
-              'username' => \Drupal::service('renderer')->renderPlain($username),
+              'username' => DeprecationHelper::backwardsCompatibleCall(\Drupal::VERSION, '10.3.0', fn() => \Drupal::service('renderer')->renderInIsolation($username), fn() => \Drupal::service('renderer')->renderPlain($username)),
               'message' => ['#markup' => $revision->getRevisionLogMessage(), '#allowed_tags' => Xss::getHtmlTagList()],
             ],
           ],
diff --git a/src/Hook/AssemblyHooks.php b/src/Hook/AssemblyHooks.php
new file mode 100644
index 0000000..55295e1
--- /dev/null
+++ b/src/Hook/AssemblyHooks.php
@@ -0,0 +1,88 @@
+<?php
+
+namespace Drupal\assembly\Hook;
+
+use Drupal\Core\Routing\RouteMatchInterface;
+use Drupal\Core\Field\FieldStorageDefinitionInterface;
+use Drupal\assembly\Entity\AssemblyInterface;
+use Drupal\assembly\Entity\AssemblyType;
+use Drupal\assembly\Entity\Assembly;
+use Drupal\Core\Entity\EntityInterface;
+use Drupal\Core\Cache\Cache;
+use Drupal\Core\Hook\Attribute\Hook;
+use Drupal\Core\StringTranslation\StringTranslationTrait;
+/**
+ * Hook implementations for assembly.
+ */
+class AssemblyHooks
+{
+    use StringTranslationTrait;
+    /**
+     * Implements hook_help().
+     */
+    #[Hook('help')]
+    public function help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match)
+    {
+        switch ($route_name) {
+            // Main module help for the assembly module.
+            case 'help.page.assembly':
+                $output = '';
+                $output .= '<h3>' . $this->t('About') . '</h3>';
+                $output .= '<p>' . $this->t('Compose rich content with modular elements using Assembly') . '</p>';
+                return $output;
+            default:
+        }
+    }
+    /**
+     * Implements hook_theme().
+     */
+    #[Hook('theme')]
+    public static function theme()
+    {
+        $theme = [
+        ];
+        $theme['assembly'] = [
+            'render element' => 'elements',
+            'file' => 'assembly.page.inc',
+            'template' => 'assembly',
+        ];
+        $theme['assembly_content_add_list'] = [
+            'render element' => 'content',
+            'variables' => [
+                'content' => NULL,
+            ],
+            'file' => 'assembly.page.inc',
+        ];
+        return $theme;
+    }
+    /**
+     * Implements hook_entity_extra_field_info().
+     */
+    #[Hook('entity_extra_field_info')]
+    public function entityExtraFieldInfo()
+    {
+        $extra = [
+        ];
+        foreach (\Drupal\assembly\Entity\AssemblyType::loadMultiple() as $bundle) {
+            $extra['assembly'][$bundle->id()]['form']['references'] = [
+                'label' => $this->t('References'),
+                'description' => $this->t('Show other entities that reference this assembly'),
+                'visible' => TRUE,
+                'weight' => 99,
+            ];
+        }
+        return $extra;
+    }
+    /**
+     * Implements hook_compose_add_existing_row_data().
+     */
+    #[Hook('compose_add_existing_row_data')]
+    public function composeAddExistingRowData()
+    {
+        $entities['assembly']['used_in'] = [
+            'label' => $this->t('Used In'),
+            'callback' => 'assembly_compose_existing_data',
+        ];
+        return $entities;
+    }
+}
diff --git a/tests/src/Functional/LoadTest.php b/tests/src/Functional/LoadTest.php
index 140e494..7080cf3 100644
--- a/tests/src/Functional/LoadTest.php
+++ b/tests/src/Functional/LoadTest.php
@@ -2,6 +2,8 @@
 
 namespace Drupal\Tests\assembly\Functional;
 
+use PHPUnit\Framework\Attributes\Group;
+use PHPUnit\Framework\Attributes\RunTestsInSeparateProcesses;
 use Drupal\Core\Url;
 use Drupal\Tests\BrowserTestBase;
 
@@ -10,6 +12,8 @@ use Drupal\Tests\BrowserTestBase;
  *
  * @group assembly
  */
+#[Group('assembly')]
+#[RunTestsInSeparateProcesses]
 class LoadTest extends BrowserTestBase {
 
   /**
