diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc
index 07091c0..a4499af 100644
--- a/core/includes/bootstrap.inc
+++ b/core/includes/bootstrap.inc
@@ -2410,6 +2410,10 @@ function drupal_container(Container $new_container = NULL) {
   return $container;
 }
 
+function drupal_service($id) {
+  return drupal_container()->get($id);
+}
+
 /**
  * Returns the state storage service.
  *
diff --git a/core/modules/path/path.admin.inc b/core/modules/path/path.admin.inc
index 0535454..b66be53 100644
--- a/core/modules/path/path.admin.inc
+++ b/core/modules/path/path.admin.inc
@@ -75,7 +75,7 @@ function path_admin_overview($keys = NULL) {
 
     // If the system path maps to a different URL alias, highlight this table
     // row to let the user know of old aliases.
-    if ($data->alias != drupal_container()->get('path.alias_manager')->getPathAlias($data->source, $data->langcode)) {
+    if ($data->alias != drupal_service('path.alias_manager')->getPathAlias($data->source, $data->langcode)) {
       $row['class'] = array('warning');
     }
 
