If it is Java, I will create an Interface for this class and a static method call getGroupID(). Because the getGroupID() is a part of this class, we may not pass the group id to another type of group. They should be bound together. That's why I removed the group id argument.