LUN-1859_quick Remove template code duplication.