It looks like you will be replacing the end sections of brake line... not uncommon.

With that, just get a bolt cutter and nip the brake lines off near the slave cylinders. The slaves should unbolt and slide out as normal.

If you are saving the slave cylinders, you can put them in a vise and use a little heat and vise grips to get the stubs off. Easier on the bench.