And sometimes I think there are often false dichotomies or strawmens accussed against hedonism or Epicureanism like Virtue vs Pleasure.
For this subject for example it is not only means vs Ends but we can judge/value (with our feelings) the means and the ends.
For example the horrific idea of murdering 1 healthy person and spending his/her organs to save the lifes of 5 other persons.
To allow this we would loose security and the right for life (which is a social institution based on social contract) and no one would want to be the spender.
Or another example is when Kant was asked if to lie could be ok when saving lifes. He denied it and gave (ironically ) the reason that would lead society in confusion and destroy trust between people. What he not recognized is that his reasoning is based on the utility ( trust, no confusing).
You have only to ask many times "Why" an Deontologists/Kantian and you get to their core reasonings which they have to admit => you value everything with Pleasure/Pain/Feeling/Utility