My eye went straight to the new code in this diff before I read the bit it replaces, and I thought I'd write a comment saying "ah, we can DRY this up". I think there's a good chance that another developer might swing by here in future and refactor it back to how it was. That's what went through my mind when I read the diff, and I if I hadn't checked the story I wouldn't have realised that this was desired behaviour.

I think it might be worth using some conditional logic to return either "consultation" or "publication" (i.e. the logic Neil has requested in the comments on the ticket) and just inserting that into a single chunk of HTML? It could be in a helper method (which is how I'd probably do it), but I don't feel too strongly either way about that.