Get rid of safe_interface usage in tools package.