Remove flags for nonexistent moves.