Get rid of safe_interface usage in safe.widgets and safe.test.