Encapsulate component library usage in a ComponentLibrary class