Back in the days when only small parts have been migrated to JInja2 the templates have been placed inside the Python file which did the configuration.
As more and more parts are getting migrated it has been found out that this sometimes super clutters the entire Python script.
Bad examples:
- Wireless Interfaces (WIFI)
- DHCP
- Wireless Modem (multiple templates)
Thus all templates should be removed from the Python file and placed into the dedicates template folder to unclutter the Python configuration logic.