overnight feeds

Hi,If my husband is bottle feeding LO overnight, can I not take out a refridgerated bottle at 10pm when I BF her, to warm slowly at room temperature, ready for him to give at 2am? Surely 4 hours out of the fridge is enough to warm it and not too long that bacteria would grow? I can't find the answer on the internet so any ideas welcome!