Stop using deprecated interfaces.