Remove logical rows

Updated removal undo logic to take into account logical row mapping.