
Here in Toronto, we have something known as "Type G" loading spaces. They're used for collecting garbage and they are generally required in multi-family buildings with 30 or more homes (though exceptions do exist). The problem with these spaces is that they're highly consumptive. Below is an excerpt from a recent article in Azure by Kelly Alvarez Doran and Mitchell May:
In order to accommodate a truck’s large arms to swing a garbage bin up and over its frame, residential buildings require what’s known as a “Type G” loading space, which measures at least 13 metres long, four metres wide and 6.1 metres tall. While the area of the loading space alone is significant, the required turnaround space — allowing trucks to navigate in and out of the building — is often double or even triple its size. Current City of Toronto regulations require this loading space to be designed in order to allow a garbage truck to enter the site, collect the waste, and exit the site without the need to reverse onto a public road — resulting in T- or L-shaped paved areas to accommodate the turns of a wide wheel base. Due to the site constraints and density of these developments, Type G loading is often internalized within the building’s footprint. The outcome? A truck’s manoeuvring effectively consumes the ground floor at the expense of retail space and street-level activity.
They go on to analyze what would happen if you took a typical Toronto main street and then intensified it with buildings requiring Type-G loading. The result, for a particular stretch of Dundas Street between Dufferin and Brock, was that you'd end up losing somewhere around 44 storefronts just to accommodate all of this loading.
Here's their diagram showing the Type-G loading areas in blue:

New developments are often criticized for how they perform at the ground floor. But a big part of this has to do with all of the back-of-house services and other requirements that they need to accommodate. Type-G loading is a big one and it's simply not feasible on smaller projects. Projects between 31-60 homes can apply for an exception, but I think this flexibility should already be built in.
Beyond increasing the unit trigger, what else could we do? Well, the obvious ones are (1) make the trucks smaller and more nimble and (2) centralize garbage collection. Our approach to garbage collection is decentralized. It is collected from every house and every building. But there is the option to cluster the pickups, which is what many European cities do.
Here's Barcelona via Google Street View. Note the bins.

Admittedly, this isn't nearly as convenient as having a truck come right to your door or building, and it's not the most attractive way to decorate a street. So I'm inclined to start with option one. And for that, there are cities like Tokyo we can look to. Tokyo is famous for its strict garbage collection rules and for its smaller, cuter trucks. Here's a comparison to North American trucks via ChatGPT (meaning, I can't be held liable for any inaccuracies in this chart):

We aren't quite Tokyo. Few cities are. But surely there are ways we can be just as functional and take up a lot less space. This would not only benefit our main streets, but also improve the overall viability of infill housing.