refactoring Group and Application to a common super type 'ParentComponent'