move indirect pinning to its own structure