I’d check the motor identification first. In Patrick’s reply, he mentions that the 20D gearmotors don’t use a 10-tooth pinion and that Pololu doesn’t have a pinion CAD model. A close-up photo would help resolve that before you start modelling around it.
If you’re reusing the complete original gear train, keeping the same gears meshing in the same sequence preserves the ratio. For the new housing, I’d concentrate on measuring the shaft centre distances, shaft support diameters, and each gear’s axial position. You’ll also need enough end clearance that tightening the housing doesn’t bind the gears.
For housing design, simplified gear models showing the outside diameters and widths can be enough to check clearances, provided the shaft locations are accurate.
If you eventually use PCBWay’s CNC machining service for the housing, include a dimensioned drawing specifying the critical shaft positions and bearing or bushing fits alongside the STEP file.
What are you hoping to change about the original gearbox—its shape, mounting arrangement, or output shaft position?