Moved layoutClip construction to panels.