Splitting out the layout related code to Aoe_Layout