unique sequence for entities; entity refactoring;