Remove unused fields and consts.