Extracted set_up method