Per Piotr on Gerrit:
Also, looking forward, we would provide a interface, that would have one method createLink or sth like that, and then have our own WikimediaGenerator that would build it this way. Then anyone else could reuse this software and provide their own generator.
The idea is to have adapters for different link generators in order for Proton to be resused and the WikimediaGenerator replaced for something else when needed.