Refactor lable engine generate label content