Refactor the h3ulcb machine templates