Minor code cleanup in BitArray