Refactor additions and deletions.