Prune the table scan assignments just before plan finalization