Extract relation to primary