Refactor bulk operations.