Remove all references to Template record also (including 2 permission tests that test Template permissions)