Introduced Panel factory.

This helps to control the existence of panels at a top level.