refactor to reuse logic from sites_create in sites_copy