Habitat contrasts reveal a shift in the trophic position of ant assemblages.