Remove broken automation code from ES