Moving the service resource back into the platform-specific section - split to all the creation of the resource prior to the calling of it.