@middleman Any idea how to make this code more DRY? /cc @tdreyno