Cleaned up the REST API of the groups module.