Remove internal ``_pytest.terminal.flatten`` function in favor of ``more_itertools.collapse``.