IDE-1554 source refactoring

many overlaps about adding templates in AddLayoutTemplatesFactory and AddLayoutTplOperation,
extract them and remove the redundant ones.
Missspelled filename.