Remove dead code from the AE helper