Remove code that had to do with the old API.