remove unused code from group field