Add safety checks to api deprecation utils
Show api deprecated warnings in console