Refactor ',' code of ListEdit/RecordEdit