[refactor] remove all templates and remain only classes