Wheel Bearings into uprights

Currently refurbishing the running gear. When I took the uprights off, the ball joint nuts seemed to have scraped on the back of the speed sensor covers. When refitting do I need to fit the bearings after fitting the uprights (whole lot more difficult for torquing). Or will it be ok to fit the bearings to the uprights then the fit balljoints to the upright?

Am painting everything etc first and fitting new bearings so figure will have slightly more clearance once rust removed. But is this the corrrect order?

I’ve just removed a couple of mine with the uprights still attached to the balljoints/wishbones. Struggling to see how you could have fouled the sensor covers on them.

When I did a full refurb on my previous Lotus, I assembled the hubs and uprights off the car as you say it makes torquing easier, but I think it should be doable either way.