reduce code duplication in LOK init.cxx
reduce code duplication in LOK init.cxx

Change-Id: I65335a2d0fb6e1ff46e3302463fbcf396fbea215

JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core,JurassicWordExcel/core