Merge "Set appropriate builder flags in copy-like constructor" into main