Your logic is flawed by the simple fact that the games you mention are digital titles.
The Wii U may have ended production. However, the Wii U eshop is still up and running, those titles are still available, and likely will be for many years yet. Those games are still being sold and in this situation literally nothing has changed from when the hacks were first removed.
Also, you seem to have missed the point entirely on why the SMA4 hack was removed - because it's essentially piracy. The Wii U eshop version contained a unique version of the ROM, with all the e-reader levels included and open for the first time ever. The patch basically turned your stock SMA4 rom into the one Nintendo offered on the VC, with a matching checksum. That's why it was removed, and it has absolutely sod all to do with the production status of the Wii U.