I used to take them out from the inside, but when changeing the feed line from the reservoir i found it way more handy to flip the hood open, take out the firewall in front of the cab with four or five M8 bolts, and take the brake lines off from that side (instead of yanking it out towards the seat, under a lot of tension on the rubber brake lines)