Canonize .instanceof template line a bit