First is to let the kids keep it, but limit how much they eat. As the months go by and they see the remaining candy becoming inedible, they get smarter about how much trick or treating to do the next year.
Second is to let them pick their favorite and take the rest to work as giveaway. A very common practice, many other people do this too.