Refactor addNLP and deleteNLP