Cleaned up alert ingest code