refactor 3 separate methods for adding ref data to activity group into common one