Make LinkMovementMethodExt more generic

Change-Id: I40e0e8da3870abf842a3ec3195fd500254cd8a68