Extract layout variables