Refactor how data is shared between the server and the controller instances.