diff --git a/src/xray.js b/src/xray.js
index <HASH>..<HASH> 100644
--- a/src/xray.js
+++ b/src/xray.js
@@ -1,12 +1,7 @@
 const xray = require('aws-xray-sdk-core');
 
-exports.captureAWS = function (awsSdk) {
-  return xray.captureAWS(awsSdk);
-};
-
-exports.captureWithXRay = (awsSdk) => {
+exports.captureWithXRay = function (awsSdk) {
   xray.captureHTTPsGlobal(require('http'));
-  const AWS = xray.captureAWS(awsSdk);
   xray.capturePromise();
-  return AWS;
+  return xray.captureAWS(awsSdk);
 };
remove unnecessary function, reorder for tidying up code

remove unnecessary function, reorder for tidying up code