Update code in demos using deprecated interfaces.