diff --git a/src/Plugin/Field/FieldFormatter/YouTubeThumbFormatter.php b/src/Plugin/Field/FieldFormatter/YouTubeThumbFormatter.php
index 77c9750..c921f84 100644
--- a/src/Plugin/Field/FieldFormatter/YouTubeThumbFormatter.php
+++ b/src/Plugin/Field/FieldFormatter/YouTubeThumbFormatter.php
@@ -6,12 +6,12 @@
  */
 
 namespace Drupal\youtube\Plugin\Field\FieldFormatter;
+
 use Drupal\Core\Form\FormStateInterface;
 use Drupal\Core\Field\FieldItemListInterface;
 use Drupal\Core\Field\FormatterBase;
 use Drupal\Core\Url;
 
-
 /**
  * Plugin implementation of the 'youtube_thumbnail' formatter.
  *
@@ -108,7 +108,7 @@ class YouTubeThumbFormatter extends FormatterBase {
     foreach ($items as $delta => $item) {
       // If the thumbnail is linked to its youtube page, take the original url.
       if (isset($link_youtube) && $link_youtube) {
-        $url = \Drupal\Core\Url::fromUri($item->input);
+        $url = Url::fromUri($item->input);
         $url->setOption('html', TRUE);
       }
 
diff --git a/youtube.module b/youtube.module
index ba5bb3b..0c40191 100644
--- a/youtube.module
+++ b/youtube.module
@@ -10,7 +10,6 @@ use Drupal\Component\Utility\Html;
 use Drupal\Component\Utility\SafeMarkup;
 use Drupal\field\Entity\FieldConfig;
 use Drupal\Core\Language\LanguageInterface;
-use Drupal\Core\Url;
 
 /**
  * Implements hook_menu_link_defaults().
