Extract TEMPLATES.