How to downgrade from 8.1 to 7.1.2

Hi Team, Please help me to downgrade from Oreo to nougat , I don't like this room it's buggy and battery drain faster