Remove useless warning and make the graph more optimized in old supported cases.

I don't agree with that change: if we do that, we do not correctly test the code that does this expansion, or that decides if the expansion is needed or not (if the code itself changes in the future).