Shared pointers for states are removed