Yeah, DRY, lots of similarities with staging_replicate, TODO