De-generic-ify Instance::create_3d_context.