Removing duplicate bodies from aggregate operations logic.