Reuse duplicate code in LinkTitles

Change-Id: I3b76d7889c6588fcffad6404cc503033a6ed94ff
Merge "Reuse duplicate code in LinkTitles"