Adds helper function to remove extraneous nested arrays
Adds ability to return service status by type