Extract spy injection and removal to into 'before(:all)' and after(:all)'.