LCD_KCAL: Refactor code/implementation