Reduce complexity of exports.js