Entity templates and undo/redo

this constant could be at the beginning of the file, so in case of change, you can find it faster