On Windows 10 it is Windows that turns off Defender if a third party av is installed. avast turns defender off in Windows versions prior to 10.