Restructure map2request and dependencies to return a status code instead of VALUE_PAIRs