Some companies use location or system attributes in their comp ID. Some use other fields.
In drawing, when location of the item is changed, a prompt would be nice which asks if we want to regenerate ID. This option can be managed from Project settings > Drawings.