Refactor to use deployinator's helpers.