Self-organization of background habitat determines the nature of population spatial structure