diff --git a/badges/lib/awardlib.php b/badges/lib/awardlib.php
index <HASH>..<HASH> 100644
--- a/badges/lib/awardlib.php
+++ b/badges/lib/awardlib.php
@@ -26,7 +26,6 @@
 
 defined('MOODLE_INTERNAL') || die();
 
-require_once(dirname(dirname(dirname(__FILE__))) . '/config.php');
 require_once($CFG->libdir . '/badgeslib.php');
 require_once($CFG->dirroot . '/user/selector/lib.php');
 
diff --git a/badges/renderer.php b/badges/renderer.php
index <HASH>..<HASH> 100644
--- a/badges/renderer.php
+++ b/badges/renderer.php
@@ -26,7 +26,6 @@
 
 require_once($CFG->libdir . '/badgeslib.php');
 require_once($CFG->libdir . '/tablelib.php');
-require_once($CFG->dirroot . '/user/filters/lib.php');
 
 /**
  * Standard HTML output renderer for badges
MDL-<I> badges: Prevent extra loading due to unnecessary includes