Simple. All you need is this complicated procedure!...
For each configuration, consider the impedance from each pin to ground, and between the pins. If this impedance or gain is expected to impair performance, eliminate that configuration.
Impedance is defined as the ratio between voltage and current. So, if a device draws say 100mA pulses and should have less than 0.1V of ground bounce, it should have an impedance under 1 ohm. Simple enough. Of course, this is in terms of AC, so we need to say that's 100mA and 0.1V at some frequency (AC steady state analysis), or that we're considering some combination of dV/dt and dI/dt (transient analysis).
For example, say your motor driver switches 100mA in 100ns, or a current slew rate of 1A/us. The traces and vias pictured are probably on the order of 10nH. V = L dI/dt or about 10mV peak. Not much.
If that current flows through a current sense resistor, for example, which reads on the order of 100mV, I might be concerned, and would suggest tighter layout (shorter and wider traces, or pours; perhaps multiple vias flanking the pads), and also Kelvin connections and perhaps adding RC filters (to reduce the peak sense voltage).
The same analysis applies to +V rails, by the way, with the impedance being raised by (series) inductances and resistances, and lowered by (parallel) capacitances. The power supply network as a whole should be considered, as a filter network, and impedance or gain (transmission) peaks should be considered carefully (and damped where offensive).
All of which can be hand-waved to a certain extent, or constructed in and analyzed by, say, SPICE (the construction being an approximation of the real circuit, because a real circuit contains distributed elements like traces and planes).
Tim