Bug 861184: Pull code providing binary search for valid column height into its own method. [r=roc]