$delegate can actually be any service, so it should be typed as `any`