It goes in just like it came out, so in the words of service manuals around the world, "installation is the reverse of removal."
Once the new part is installed, you'll need to add new brake fluid (never try to reuse the old stuff) and bleed the brakes. Now you're ready to go!


