Extracted common setup