Split plugin templates into common and specific parts.