Makes a Node module to sort data assignment logic out of main server file