Separating out templates