........S. [ZBXNEXT-581] DBcopy_template_items() refactoring (1/2)