Share code between the RollForward action and behavior.

This makes the action work properly.

Fixes #436.