sw: Small code rewrite
sw: Small code rewrite

The purpose is improve legibility of future patches

Change-Id: I15bcfdc74feab25cf3ce4dcf246969f3d9f152d2

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