Remove dead code.
`Promise` is already defined in ES6.
Use per function lodash modules.
Sort requires.
Named functions for better stack traces.