Move common part of template path to templates class