Reworked ComponentPanel and ComponentFactory.