Cleanup of unneeded resources in library-service-osgi.