Move reactor logic out of Machine