Refactor to new yar and hapi apis