Removes calls to deprecated functions that rely upon promises