track: Fix flake8 warning in code example
link: Reuse Link.as_* logic in Foo(uri) code paths