Extract Template object.
Cleanup.