I think that `let options = JSON.parse(JSON.stringify(packaging));` was testing that `packaging` was a valid json object.  I could be wrong, but this change doesn't seem necessary.