Change Activity#next_activity so it is generated on the fly, not by callbacks

[Finishes #66026770]