[Refactoring] Remove code duplication in rt/aaA.d