Fix brokenness by moving side-effects out of initial_state_data()