I think I have said this before, but I have five motorcycles and the first thing I did to each of them when they came through the garage door was to rip out the master cylinder and hoses and throw them in the trash then get a new master cylinder and SS hoses and a kit for the calipers.
The caliper can be rebuilt with a kit because it is a very simple device and you can see all of the moving parts (1).
The hoses develop crud on the inside that breaks loose with flexing and the crud floats to the master cylinder where it can plug up the tiny holes.
The master cylinder is the most complicated of the brake components and it can have internal issues that you can't see. I also do not trust that a rebuild kit for the master cylinder will be the same quality and fit as the factory originals, so I throw the master cylinder in the trash. I don't even save the brake lever because I had one of those break on me as well. Not a good feeling.
Now when I squeeze the brake lever the bike comes to a nice controlled, firm stop...
Note: I do not sell master cylinders!
Now...the rant.....
This is well into the beginning of the riding season and every year members will show up on the site with pictures of their winter project. They spent $300 to have the tank painted. $200 to powder coat the frame. Another $500 on various parts and goodies, and then they come here and ask where they can find cheap brakes, chains and tires!
Like I said above, I start with the safety stuff and if I have any money left over I might look at the rest of the bike. I change my drive chains every 2 years. New master cylinder and brake lines. Replace the tires before they are bald and buy good quality tires.
So, please spend the money on the safety stuff so you can stick around and maybe teach your grandchildren how to ride a motorcycle....