Actually, in Windows 10, Defender get’s shut off as soon as a third party AV is registered.
This is done by the OS not by Avast or any other 3rd party AV.

http://screencast-o-matic.com/screenshots/u/Lh/1502547755054-72132.png