query_engine: delete migrated code

The migrated code needs to be deleted because future
API changes will break them.