Use method dispatch for link- and distribution-specific functions.

Much faster.