Reduce minor duplication in lifecycle test.