Pull out repetitive setup statements.