Splitting out templates