Pulled out CandyResource into its own service, wrote unit tests and made related app changes