Move common setup in separate file.