Added functionality for removing categories