Move AAE related functions from rt module to rt_aae.