To me this looks like it achieves the same thing as the code you removed. By unsetting it and then merging in your extension, isn't that the same as just overriding the extension in the first place like the code was doing before?