Move from a callback-based architecture to a flux-based architecture