Immutable means: Remove all setters. We barely use them. We create API requests and then recreate the relevant data model objects, but do not actually change them client side.
This probably needs two steps:
- Remove all setters on high level objects (e.g. Term, Statement and so on). But keep the lower level functions (e.g. Map.setItem) because they are used.
- Remove all remaining setters.