webstaff: consolidate code for generate new copies