Cosmic robbery: New study explains how smaller galaxies lose their dark matter