refactor CRUD for attributeSets