I currently have a React.js project which uses Redux to manage the state, which is represented by an Immutable.js object.One of the comments during a code review was that we have lots of instances of map.get('someField') repeated across multiple files, meaning if someField changes name there are a few Strings to update.  We do have pretty good test coverage so I'd hope that any errors would be picked up but it's not ideal.The question was raised as to what the standard in the JS community is for this type of situation. All the examples I've seen have the strings defined inline rather than as constants. Do other people who are using Immutable.js pull the field names out to be constants or just keep them as plain strings?
Immutable.js standard practice for referencing the same Map field in multiple places
javascript