s3:net registry import: move precheck-and-import code to its own function