[#923] Handle template composition in its own module.