Move setup out of main case.