Refactoring to compact the checking of origin resources in create