Use setup/teardown for duplicated code bits