Master cylinder

It would work either way, but I think making the aft one for the fronts is a little safer in various failure modes. Your fronts do 70% of the braking. I haven't been inside an MC much, so can't explain exactly why.