No form policy about it. A good rule of thumb is 'create a constant if there are many duplicates or if the duplication can lead to bugs'.