Some minor code simplifications
Some minor code simplifications

This commit slightly refactors the code in peg-macros/translate.rs with
the aim of reducing the total number of lines of code and the amount of
nesting in certain places. It should have no semantic changes.

kevinmehall/rust-peg,kevinmehall/rust-peg