Refactor purchase request and associated repo.  Make repo the assigner of purchase request ids.