Drainage removes swamps which provide a habitat for mosquito larvae , but such drainage can also destroy harmless habitats by accident . Drainage removes swamps which provide a habitat for mosquito larvae , but can also destroy ecologically productive areas .