<informationTable xmlns="http://www.sec.gov/edgar/document/thirteenf/informationtable" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <infoTable>
       <nameOfIssuer>ALLIANCE DATA SYSTEMS CORP</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>018581108</cusip>
       <value>45360</value>
       <shrsOrPrnAmt>
           <sshPrnamt>259232</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>259232</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>SMITH (A.O.) CORP</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>831865209</cusip>
       <value>1645</value>
       <shrsOrPrnAmt>
           <sshPrnamt>30850</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>30850</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>BERRY GLOBAL GROUP</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>08579W103</cusip>
       <value>166867</value>
       <shrsOrPrnAmt>
           <sshPrnamt>3097589</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>3097589</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>BORGWARNER INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>099724106</cusip>
       <value>98564</value>
       <shrsOrPrnAmt>
           <sshPrnamt>2566101</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>2566101</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>CARMAX INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>143130102</cusip>
       <value>45443</value>
       <shrsOrPrnAmt>
           <sshPrnamt>651050</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>651050</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>COGENT COMMUNICATIONS HOLDINGS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>19239V302</cusip>
       <value>1915</value>
       <shrsOrPrnAmt>
           <sshPrnamt>35300</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>35300</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>DESCARTES SYS GROUP INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>249906108</cusip>
       <value>62</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1700</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1700</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>DISCOVER FINANCIAL SERVICES</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>254709108</cusip>
       <value>44262</value>
       <shrsOrPrnAmt>
           <sshPrnamt>622000</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>622000</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>F5 NETWORKS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>315616102</cusip>
       <value>1075</value>
       <shrsOrPrnAmt>
           <sshPrnamt>6850</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>6850</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>FASTENAL CORPORATION</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>311900104</cusip>
       <value>22737</value>
       <shrsOrPrnAmt>
           <sshPrnamt>353550</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>353550</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>FLOWSERVE</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>34354P105</cusip>
       <value>291</value>
       <shrsOrPrnAmt>
           <sshPrnamt>6450</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>6450</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>GARDNER DENVER HOLDINGS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>36555P107</cusip>
       <value>74872</value>
       <shrsOrPrnAmt>
           <sshPrnamt>2097850</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>2097850</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>GILDAN ACTIVEWEAR INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>375916103</cusip>
       <value>96637</value>
       <shrsOrPrnAmt>
           <sshPrnamt>2686608</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>2686608</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>HD SUPPLY HOLDINGS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>40416M105</cusip>
       <value>1840</value>
       <shrsOrPrnAmt>
           <sshPrnamt>42450</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>42450</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>KNIGHT-SWIFT TRANSPORTATION</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>499049104</cusip>
       <value>41673</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1275169</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1275169</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>MAGNA INTERNATIONAL INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>559222401</cusip>
       <value>63846</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1311275</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1311275</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>MIDDLEBY CORP</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>596278101</cusip>
       <value>123365</value>
       <shrsOrPrnAmt>
           <sshPrnamt>948740</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>948740</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>NETSCOUT SYSTEMS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>64115T104</cusip>
       <value>32032</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1141145</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1141145</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>OPEN TEXT CORP</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>683715106</cusip>
       <value>99469</value>
       <shrsOrPrnAmt>
           <sshPrnamt>2588316</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>2588316</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>POLARIS INDUSTRIES INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>731068102</cusip>
       <value>1798</value>
       <shrsOrPrnAmt>
           <sshPrnamt>21300</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>21300</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>PRA GROUP INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>69354N106</cusip>
       <value>110293</value>
       <shrsOrPrnAmt>
           <sshPrnamt>4113870</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>4113870</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>SERVICE CORP INTERNATIONAL</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>817565104</cusip>
       <value>66145</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1647450</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1647450</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>SS&amp;C TECHNOLOGIES HOLDINGS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>78467J100</cusip>
       <value>111718</value>
       <shrsOrPrnAmt>
           <sshPrnamt>1754095</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>1754095</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>TJX COMPANIES INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>872540109</cusip>
       <value>1968</value>
       <shrsOrPrnAmt>
           <sshPrnamt>36988</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>36988</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>URBAN OUTFITTERS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>917047102</cusip>
       <value>2325</value>
       <shrsOrPrnAmt>
           <sshPrnamt>78450</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>78450</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
   <infoTable>
       <nameOfIssuer>WABCO HOLDINGS INC</nameOfIssuer>
       <titleOfClass>COM</titleOfClass>
       <cusip>92927K102</cusip>
       <value>45053</value>
       <shrsOrPrnAmt>
           <sshPrnamt>341750</sshPrnamt>
           <sshPrnamtType>SH</sshPrnamtType>
       </shrsOrPrnAmt>
       <investmentDiscretion>SOLE</investmentDiscretion>
       <votingAuthority>
           <Sole>341750</Sole>
           <Shared>0</Shared>
           <None>0</None>
       </votingAuthority>
   </infoTable>
</informationTable>
