IsTemplate record refactoring