We simplify the ElementsGroup class to reduce code duplication and to improve the components handling
ElementsGroup