Extract pager links building logic to the RelationsBuilder