Refacor codes in members-table-transformer