Avoid using non-UUID obsoleted APIs.