Code Quality Enhancement in ShareEntity