Environment drives selection and function of enhancers controlling tissue-specific macrophage identities.