Stop using closures for reactions (part of #78).