This line has me puzzled. I see that specs fail if the `any_instance` stub is removed, but it seems wrong to have to stub it since that won't happen in the application code.