diff --git a/payment/uc_payment/src/Form/OrderPaymentsForm.php b/payment/uc_payment/src/Form/OrderPaymentsForm.php
index 159a958..c24937f 100644
--- a/payment/uc_payment/src/Form/OrderPaymentsForm.php
+++ b/payment/uc_payment/src/Form/OrderPaymentsForm.php
@@ -11,6 +11,7 @@ use Drupal\Component\Utility\Xss;
 use Drupal\Core\Form\FormBase;
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Url;
+use Drupal\user\Entity\User;
 use Drupal\uc_order\OrderInterface;
 use Drupal\uc_payment\Entity\PaymentMethod;
 use Drupal\uc_payment\Plugin\PaymentMethodManager;
@@ -92,8 +93,8 @@ class OrderPaymentsForm extends FormBase {
           '#markup' => \Drupal::service('date.formatter')->format($payment->received, 'short'),
         );
         $form['payments'][$payment->receipt_id]['user'] = array(
-          '#theme' => 'uc_uid',
-          '#uid' => $payment->uid,
+          '#theme' => 'username',
+          '#account' => User::load($payment->uid),
         );
         $form['payments'][$payment->receipt_id]['method'] = array(
           '#markup' => ($payment->method == '') ? $this->t('Unknown') : $payment->method,
diff --git a/uc_order/src/Controller/OrderController.php b/uc_order/src/Controller/OrderController.php
index 2d9e606..64a6b25 100644
--- a/uc_order/src/Controller/OrderController.php
+++ b/uc_order/src/Controller/OrderController.php
@@ -10,6 +10,7 @@ namespace Drupal\uc_order\Controller;
 use Drupal\Core\Controller\ControllerBase;
 use Drupal\uc_order\Entity\Order;
 use Drupal\uc_order\OrderInterface;
+use Drupal\user\Entity\User;
 use Drupal\user\UserInterface;
 use Symfony\Component\HttpFoundation\Response;
 
@@ -85,7 +86,7 @@ class OrderController extends ControllerBase {
     foreach ($result as $change) {
       $rows[] = array(
         \Drupal::service('date.formatter')->format($change->created, 'short'),
-        array('data' => array('#theme' => 'uc_uid',  '#uid' => $change->uid)),
+        array('data' => array('#theme' => 'username',  '#account' => User::load($change->uid))),
         array('data' => array('#markup' => $change->changes)),
       );
     }
diff --git a/uc_order/src/Plugin/Ubercart/OrderPane/AdminComments.php b/uc_order/src/Plugin/Ubercart/OrderPane/AdminComments.php
index 1b49847..c756e53 100644
--- a/uc_order/src/Plugin/Ubercart/OrderPane/AdminComments.php
+++ b/uc_order/src/Plugin/Ubercart/OrderPane/AdminComments.php
@@ -8,6 +8,7 @@
 namespace Drupal\uc_order\Plugin\Ubercart\OrderPane;
 
 use Drupal\Core\Form\FormStateInterface;
+use Drupal\user\Entity\User;
 use Drupal\uc_order\EditableOrderPanePluginBase;
 use Drupal\uc_order\OrderInterface;
 
@@ -42,7 +43,7 @@ class AdminComments extends EditableOrderPanePluginBase {
       foreach ($comments as $comment) {
         $build['#rows'][] = array(
           array('data' => \Drupal::service('date.formatter')->format($comment->created, 'short'), 'class' => array('date')),
-          array('data' => array('#theme' => 'uc_uid', '#uid' => $comment->uid), 'class' => array('user')),
+          array('data' => array('#theme' => 'username', '#account' => User::load($comment->uid)), 'class' => array('user')),
           array('data' => array('#markup' => $comment->message), 'class' => array('message')),
         );
       }
@@ -59,8 +60,8 @@ class AdminComments extends EditableOrderPanePluginBase {
     foreach ($comments as $comment) {
       $items[] = [
         'username' => [
-          '#theme' => 'uc_uid',
-          '#uid' => $comment->uid,
+          '#theme' => 'username',
+          '#account' => User::load($comment->uid),
           '#prefix' => '[',
           '#suffix' => '] ',
         ],
diff --git a/uc_order/src/Plugin/Ubercart/OrderPane/OrderComments.php b/uc_order/src/Plugin/Ubercart/OrderPane/OrderComments.php
index 9d5a1a2..fc26aa4 100644
--- a/uc_order/src/Plugin/Ubercart/OrderPane/OrderComments.php
+++ b/uc_order/src/Plugin/Ubercart/OrderPane/OrderComments.php
@@ -7,6 +7,7 @@
 
 namespace Drupal\uc_order\Plugin\Ubercart\OrderPane;
 
+use Drupal\user\Entity\User;
 use Drupal\uc_order\Entity\OrderStatus;
 use Drupal\uc_order\OrderInterface;
 use Drupal\uc_order\OrderPanePluginBase;
@@ -72,7 +73,7 @@ class OrderComments extends OrderPanePluginBase {
         $icon = $comment->notified ? 'true-icon.gif' : 'false-icon.gif';
         $build['#rows'][] = array(
           array('data' => \Drupal::service('date.formatter')->format($comment->created, 'short'), 'class' => array('date')),
-          array('data' => array('#theme' => 'uc_uid', '#uid' => $comment->uid), 'class' => array('user')),
+          array('data' => array('#theme' => 'username', '#account' => User::load($comment->uid)), 'class' => array('user')),
           array('data' => array('#theme' => 'image', '#uri' => drupal_get_path('module', 'uc_order') . '/images/' . $icon), 'class' => array('notified')),
           array('data' => array('#plain_text' => $statuses[$comment->order_status]->getName()), 'class' => array('status')),
           array('data' => array('#markup' => $comment->message), 'class' => array('message')),
diff --git a/uc_store/uc_store.module b/uc_store/uc_store.module
index 81ddeae..a585712 100644
--- a/uc_store/uc_store.module
+++ b/uc_store/uc_store.module
@@ -119,11 +119,6 @@ function uc_store_theme() {
       'variables' => array('qty' => 1),
       'template' => 'uc-qty',
     ),
-    'uc_uid' => array(
-      'variables' => array('uid' => 0),
-      'file' => 'uc_store.theme.inc',
-      'function' => 'theme_uc_uid',
-    ),
   );
 }
 
diff --git a/uc_store/uc_store.theme.inc b/uc_store/uc_store.theme.inc
deleted file mode 100644
index 376b96b..0000000
--- a/uc_store/uc_store.theme.inc
+++ /dev/null
@@ -1,33 +0,0 @@
-<?php
-
-/**
- * @file
- * Theme functions for the uc_store module.
- */
-
-use Drupal\user\Entity\User;
-
-/**
- * Displays a username in the standard format and with consistent markup.
- *
- * @param array $variables
- *   An associative array containing:
- *   - uid: A user ID value.
- *
- * @return string
- *   Formatted HTML.
- *
- * @ingroup themeable
- */
-function theme_uc_uid(array $variables) {
-  if ($variables['uid']) {
-    $username = array(
-      '#theme' => 'username',
-      '#account' => User::load($variables['uid']),
-    );
-    return drupal_render($username);
-  }
-  else {
-    return '-';
-  }
-}
