Regenerate discussion_id for notes that are being copied over to the
epic when issue is promoted to epic.
https://gitlab.com/gitlab-org/gitlab-ee/issues/11445
Extract code to make it easier reusable
- introduce AttributesRewriter and ContentRewriter
- support group entites when rewriting content
- make Uploader copy_to working for Namespaces