pull shared setup into nested contexts for phil_spec