Use corner brackets to rebuild a wall frame that has the horizontal 2x4s extended in an adjacent room

framing

The picture below shows the situation as it is right now.

I need to rebuild the frame on the wall where you see the vertical red and blue water supply pipes. So the plan is to remove the two vertical studs to the left and to the right of the pipes and cut the pipes near the top. I will put pex there and reroute the pipes toward the perpendicular wall you can guess in the picture.

The empty space to the left (no studs and framing there is because I removed an air duct and more piping for the sink that was there. That left in place a lot of not needed framing and patch work that had to go

After doing this I need to extend the two white horizontals to complete the framing and add frames as per standard every other 16".
Removing the top white 2×4 (the top of the frame) is out of question for two reasons:
-it hat the pipes going through it and it will be difficult to put it back
-since it is extended to the right into the wall of the next room that adds structural resistance> It is also nailed to the joists (this is a basement bathroom)

The guys who built this put the bottom horizontal studs floating on smaller pieces of wood (you can guess it to the bottom right side of the picture)

What is the standard solution in situations like this? How do I bridge the horizontals together ? It is very important for me to have a perfect alignment of the horizontal bottom 2×4 that will extend each other.
If I leave the two horizontals in place I will not be able to use nails and I think I have to options, use screws and an angle attachment for my drill or use angle brackets to secure the vertical studs ?

enter image description here

Update:
There is two issues here: extending the plates and removing the old/oddly spaced studs and adding new one properly spaced back.
For the top plate which I need to leave in place I will not have access from the above to properly nail or screw the new studs so I am considering brackets (?) Is it possible? For the plates I am not clear how and if I have to extend them somehow or simply close the frame there and create a new smaller one adjacent to the just closed one. I need the bottom plate in one piece so I might cut it and add a longer one like below (so I need to connect in #1 and cut and replace in #2)
enter image description here

After a long research I found something like what I am thinking about
enter image description here
enter image description here

Update 2

I need to bridge in #1 and #2 -how do I do that ?
enter image description here

Best Answer

Toe nailing is acceptable so anything stronger like repair brackets or structural screws will work too.