<informationTable xmlns="http://www.sec.gov/edgar/document/thirteenf/informationtable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <infoTable>
       <nameOfIssuer>Arch Capital Group Ltd</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>G0450A105</cusip>
       <value>161670</value>
       <shrsOrPrnAmt>
           <sshPrnamt>4360020</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>4352925</Sole>
           <Shared>0</Shared>
           <None>7095</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Autozone Inc.</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>053332102</cusip>
       <value>129267</value>
       <shrsOrPrnAmt>
           <sshPrnamt>117572</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>117382</Sole>
           <Shared>0</Shared>
           <None>190</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Chipotle Mexican Grill Cl A</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>169656105</cusip>
       <value>62457</value>
       <shrsOrPrnAmt>
           <sshPrnamt>85222</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>85102</Sole>
           <Shared>0</Shared>
           <None>120</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Cummins Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>231021106</cusip>
       <value>87429</value>
       <shrsOrPrnAmt>
           <sshPrnamt>510267</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>509812</Sole>
           <Shared>0</Shared>
           <None>455</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Deere &amp; Co.</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>244199105</cusip>
       <value>111465</value>
       <shrsOrPrnAmt>
           <sshPrnamt>672650</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>671570</Sole>
           <Shared>0</Shared>
           <None>1080</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Expeditors International of Washington</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>302130109</cusip>
       <value>80934</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1066882</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1065552</Sole>
           <Shared>0</Shared>
           <None>1330</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Fastenal Co</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>311900104</cusip>
       <value>90939</value>
       <shrsOrPrnAmt>
           <sshPrnamt>2790409</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>2785969</Sole>
           <Shared>0</Shared>
           <None>4440</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Goldman Sachs Group Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>38141G104</cusip>
       <value>84666</value>
       <shrsOrPrnAmt>
           <sshPrnamt>413811</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>413156</Sole>
           <Shared>0</Shared>
           <None>655</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Mastercard Inc Class A</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>57636Q104</cusip>
       <value>117953</value>
       <shrsOrPrnAmt>
           <sshPrnamt>445896</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>445266</Sole>
           <Shared>0</Shared>
           <None>630</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Moody&apos;s Corp.</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>615369105</cusip>
       <value>202845</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1038579</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1036904</Sole>
           <Shared>0</Shared>
           <None>1675</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>NVR Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>62944T105</cusip>
       <value>46749</value>
       <shrsOrPrnAmt>
           <sshPrnamt>13871</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>13850</Sole>
           <Shared>0</Shared>
           <None>21</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>O&apos;Reilly Automotive Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>67103H107</cusip>
       <value>82465</value>
       <shrsOrPrnAmt>
           <sshPrnamt>223288</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>222933</Sole>
           <Shared>0</Shared>
           <None>355</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Ross Stores Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>778296103</cusip>
       <value>68682</value>
       <shrsOrPrnAmt>
           <sshPrnamt>692918</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>691823</Sole>
           <Shared>0</Shared>
           <None>1095</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Strategic Education Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>86272C103</cusip>
       <value>68535</value>
       <shrsOrPrnAmt>
           <sshPrnamt>385028</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>384572</Sole>
           <Shared>0</Shared>
           <None>456</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Union Pacific Corporation</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>907818108</cusip>
       <value>52716</value>
       <shrsOrPrnAmt>
           <sshPrnamt>311727</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>311208</Sole>
           <Shared>0</Shared>
           <None>519</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Visa Inc Cl A</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>92826C839</cusip>
       <value>99989</value>
       <shrsOrPrnAmt>
           <sshPrnamt>576141</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>575221</Sole>
           <Shared>0</Shared>
           <None>920</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>Waters Corp</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>941848103</cusip>
       <value>11301</value>
       <shrsOrPrnAmt>
           <sshPrnamt>52502</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>52502</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>YUM! Brands Inc</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>988498101</cusip>
       <value>215</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1943</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1943</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
</informationTable>
