Split Mustache-specific code into separate helper class