Merge layers for bridges using group-by

The 6 layers for bridges (one per osm-layer) are merged and replaced by a group-by construction.
This removes duplication in the code.

This change does not affect rendering.