Split up the callback to its own function
Split up the callback to its own function

The `highlight` function was too big and ugly to look at, so making a
`mapSections` function was for readable and it pure -- which is an added
bonus.

sourrust/hyakko