diff --git a/src/FormBit/varbase_auth.formbit.php b/src/FormBit/varbase_auth.formbit.php
index a428d8e3a81dd50e02fa95e9c250e4cce55ea838..dc545221bc0ccb5be5e76f749d63146705b96726 100644
--- a/src/FormBit/varbase_auth.formbit.php
+++ b/src/FormBit/varbase_auth.formbit.php
@@ -60,16 +60,7 @@ function varbase_auth_submit_formbit(array $editable_config_values) {
   $configFactory->set('social_auth_type', $editable_config_values['simple.settings']['social_auth_type']);
   $configFactory->save(TRUE);
 
-  _varbase_auth_enable_modules();
-}
-
-/**
- * Custom function to get checked values.
- *
- * From the Config and enable the modules.
- */
-function _varbase_auth_enable_modules() {
-  $configFactory = \Drupal::configFactory()->getEditable('simple.settings');
+  // From the Config and enable the modules.
   $auth_modules = $configFactory->get('social_auth_type');
 
   if (isset($auth_modules) && is_array($auth_modules) && count($auth_modules) > 0) {