That's because you're not using a purification step.
Remember that thc is not water soluable, but there's a lot of shit in cannabis that is, and you can remove most of it by simply steeping your cannabis in water until most of the funky shit has been extracted.
Try this......
1. Decarb 14g's of your dry trim, popcorn buds and whatever.
-Decarb at 250F for 1 hour in the oven and you'll get close to a 90% decarb rate
2. Take your decarbed weed and soak it in water to purify it for edibles.
-Hot water technique: Boil some water, add the weed and allow it to steep just like tea or coffee.
Once the water becomes dark and nasty, dump it, add more hot water, and repeat as often as
you want until you achieve the water clarity you want.
-Cold water technique: Toss your weed into a pot of cold water, shove it in the fridge, and change out
the water twice a day for 3 days, or until you achieve the clarity you want for your water.
3. Infuse your butter / oil as normal.
You're not going to get ALL the "funk" out of your weed, but if you purify it right, you can damn sure get most of it. Besides, we all need a little funk in our lives from time to time.