Implement Definition.group method