remove deprecated flags