Mapper.from_h spec: factor out repos
refactor Mapper.from_h