The environment is the ultimate filter for which traits are maintained by natural selection. If a trait makes it easier to live in an environment, then that trait will be maintained. If a trait is makes it difficult to live in an environment, then that trait will be discontinued or removed.