Better practice, especially for when you allow plugins to spawn villagers. You don't want magic numbers in the sourcecode, you want named constants.