[PATCH 3/8] hyperv: break out common lookups into separate functions