Extract proper layout.