Make resizing a private method instead of inlining.