diff --git a/uw_cfg_common.module b/uw_cfg_common.module
index 3b252cca88dff25b75573a4a2640ee4723d489ce..f0c134885f351413d500192c8260e0d5d989daaa 100644
--- a/uw_cfg_common.module
+++ b/uw_cfg_common.module
@@ -886,8 +886,6 @@ function uw_cfg_common_form_alter(array &$form, FormStateInterface $form_state,
     }
   }
 
-  $node = \Drupal::routeMatch()->getParameter('node');
-
   // If there is a type of media field, it means that we are
   // on a node add/edit page, so add the states for the
   // actual media types in the hero section.