Use _.merge instead of _.extend for a deep copy of constants
Use lodash instead of underscore