Split the public link() method into a few smaller methods.