We should avoid changes in core. Since this is already static, you could extend MWReferenceDialog.js and just change this static config.