Remove unneeded references to web api.