Moved link related actions to a separate file

Change-Id: I595bdd5011de1f4ebe25faea16f68afcc8012767