Use freemarker macro to make ftl more concise