As mentioned above the barrel and bolt have more to do with accuracy than the upper receiver itself. The barrel slides into the upper receiver the barrel nut screws on the the receiver securing the barrel between the barrel nut and the receiver. The chamber itself is formed when the barrel extension is fitted to the barrel which happens before the barrel has a finished applied to it. Simply swapping from an A2 upper to a flat top goes something like this:
**Disassembly**
Remove handguards.
Remove upper from lower (if you have not done this already).
Drive out gas tube roll pin.
Remove gas tube.
Place upper into action block and secure in a vice.
Using the armorer's wrench break loose the barrel nut and delta ring assembly.
spin the barrel nut and delta ring assembly until they are no longer connected to the upper receiver.
slide barrel out of upper receiver.
Remove upper receiver from action block and vice
**These do not apply if you are using a complete upper or an upper without provisions for the forward assist and dust cover**
Remove dust cover from A2 receiver
Remove forward assist from A2 receiver (drive out 1 roll pin)
Install forward assist into new receiver
Install dust cover into new receiver
**Reassembly of upper**
Place new upper receiver into action block and vice.
Slide barrel into upper receiver.
Spin barrel nut onto upper receiver.
Using the armorer's wrench, tighten barrel nut to spec (30-80 lb/ft) ensuring gas hole in barrel nut aligns with gas port in upper.
Reinsert gas tube
Reinstall gas tube roll pin
Inspect all parts to ensure proper installation.
Install upper onto lower.
Install handguards.
Install sighting device (iron sight, scope, ect).
zero rifle at the range.
pat yourself on the back for a job well done

.
The rifle will be just as accurate afterwards as it was before, unless you installed a free float while you had it apart, then it could easily be more accurate than before.
How do you explain a dog named Sauer without first telling the story of a Puppy named Sig?
R.I.P. Sig, 08/21/2019 - 11/18/2019