Use Flux architecture: import dispatcher and invariant.