Cleanup of tags model.