s3-net: use printing_migrate library, and eliminate duplicate code.