Factor out calls to AA.getDataLayout().