Remove duplication in the navigation links using Liquid filters.
Turn the Liquid navigation filters into Liquid tags.
Generate the navigation group using a Liquid block.