I think the API allows ``distance=[1.*u.kpc, 500*u.pc]`` which is not a Quantity, hence why the code is the current way.