[refactor] Move linking out to a separate file