diff --git a/lib/active_job/queue_adapters/active_elastic_job_adapter.rb b/lib/active_job/queue_adapters/active_elastic_job_adapter.rb
index <HASH>..<HASH> 100644
--- a/lib/active_job/queue_adapters/active_elastic_job_adapter.rb
+++ b/lib/active_job/queue_adapters/active_elastic_job_adapter.rb
@@ -170,11 +170,15 @@ module ActiveJob
         end
 
         def aws_sqs_client_credentials
-          Rails.application.config.active_elastic_job.aws_credentials
+          config.aws_credentials
         end
 
         def aws_region
-          Rails.application.config.active_elastic_job.aws_region
+          config.aws_region
+        end
+
+        def config
+          Rails.application.config.active_elastic_job
         end
 
         def message_digest(messsage_body)
Refactor config access in adapter