More cleanup of group permission/atcommand code.