[TASK] Use general functionality for fetching templates