Remove old API code that didn't work anyway