STEP 07: Move JSON resource into a factory service