A factory reset WILL NOT get you back to Lollipop. All that does is erase your settings and take it back to a fresh Marshmallow install as if the phone were new. You'd have to install all your regular apps, network settings/passwords, etc. Only way to go back to Lollipop is to flash the phone...