diff --git a/lib/html/pipeline/sanitization_filter.rb b/lib/html/pipeline/sanitization_filter.rb
index <HASH>..<HASH> 100644
--- a/lib/html/pipeline/sanitization_filter.rb
+++ b/lib/html/pipeline/sanitization_filter.rb
@@ -1,8 +1,4 @@
-begin
-  require "sanitize"
-rescue LoadError => _
-  raise HTML::Pipeline::MissingDependencyError, "Missing dependency 'sanitize' for SanitizationFilter. See README.md for details."
-end
+HTML::Pipeline.require_dependency("sanitize", "SanitizationFilter")
 
 module HTML
   class Pipeline
require dependency for SanitizationFilter