In many cases, pest populations can be controlled by removing their preferred food and shelter. Covering food that attracts flies, or removing garbage that attracts animal pests, is often all that is required.