naive impl of remove unused requires