Move Handlebars helpers out of the MKWS-specific code to the top