This consolidates the logic for constructing the agenda flags to use for
checking transactions into a separate method versus building them inline
in multiple different places.
This makes it easier to add new agendas in the future while keeping the
flags consistent.