Dogs that basically enjoy their current food shouldn't be deprived.
If neutering doesn't stop the behavior (or you've never neutered your Beagle for breeding purposes), try limiting his be able to access. https://Telegra.ph/Tail-Wagging-Wellness-Leading-Choices-for-Elder-Dogs-05-25