de-duplicate seicop table upload code (nw)

(this doesn't seem to be actively changing at the moment, so seems safe to move, if not, revert)