What @JonRowe said: this needs to use the normal deprecation APIs.