Refactored handlebars helpers into a separate file.