I've heard from parents that it is a habit tht is difficult to break. They have tried feeding their babies solid food like cereals (mix with milk) instead of only milk before bedtime so that the fullness can last longer and hopefully baby will not wake up for a night feed.
My boy started sleeping throughout the night when he was about 3 mths olds so I did not have the problem about night feed. But recently (since 13 mths old) he wakes up at 3-4 am every nite and wants a cuddle before he can get back to sleep because he sleeps in his own cot, in his own room. He is not hungry but just wants a cuddle and some comfort in the middle of the night. So we will jst carry him for a while and pat him back to sleep. Perhaps you can try patting your baby back to sleep instead of feeding him and see if that works.
Yes, it is tiring waking up in the middle of the night... sigh...