Surface Main Panel over Smaller Original Flush Panel
I would consider the old panel a gutter or wireway at since it is no longer used (no connections in it) at that point it would be legal be sure to install an insulated bushing in the knockout hole and it should be good to go.