Factor out the collision code