Jeroboam chose his own priests to serve at the local shrines in Israel and at the places of worship where he had set up statues of goat-demons and of calves.
But the nations that live there worship other gods. So after you capture the land, you must completely destroy their places of worship--on mountains and hills or in the shade of large trees.