Replaced es7 style spread attributes with lodash object merges.