Improve code for cleaning up SPANs in insertList command patch