remove analysis code which is moving to es plugin

remove the code which is going to be in the ES plugin as it was causing issues when deploying to clusters of >1 nodes.