The problem is genuinely difficult and the usual solution is genuinely reasonable. You have forty branches. Each needs a page. Nobody at head office knows what makes branch twenty-seven different, and branch twenty-seven has a business to run and no interest in writing web copy.
So a template is created, a paragraph is written once, and place names are substituted. It is efficient, it is consistent, and it produces forty pages that are functionally identical, which search engines treat accordingly — one is chosen, more or less arbitrarily, and the rest are largely disregarded.
Meanwhile the local searches that these pages exist to capture are being won by independent competitors with one location and a page that actually describes it.