title: Refactoring dependencies instantiations in nodejs (expressjs)
body: <p>I want to refactor the following code into a more manageble and clearer codebase:</p>
  
  <p><strong>FROM</strong>  </p>
  
  <pre><code>var express = require('express');  
  var mongoose = require('mongoose');  
  </code></pre>
  
  <p><strong>TO</strong></p>
  
  <pre><code>require('../loaders/routes.dependencies.js');  
  </code></pre>
  
  <blockquote>
    <p>where "../loaders/routes.dependencies.js" is a file containing the initially mentioned code.</p>
  </blockquote>
  
  <p><strong>PS:</strong> Feel free to correct the previous code as I'm still trying stuff..</p>
  
  <blockquote>
    <p>The objective is to clean the code from dependencies instanciating everytime on multiple files , there is a list of deps but I've made the most annoying case exposed here.</p>
  </blockquote>
  
  <p>** PS **  Don't suggest any other types of refactoring ,I need this one in particular..thanks!</p>