Extract subs: startup/shutdown, and tests for web and manual commits.