Remove deprecation warnings from sample projects