Move newCapacity outside of Appender