Removed legacy api call