Propagate inactive groups upwards + Update code system to groups instead of items