Remove hardcoded sequences of mako expressions