KH-212: Prevent copying codes relations

When new codes version is created.