cleaned up linked fields function
Merge branch 'feature/autorelations' into release/orbis-r2