Remove duplicate code by creating GroupsAuthorizationContoller