Backport Advisor cleanups from master

Signed-off-by: Michal Čihař <michal@cihar.com>
Merge remote-tracking branch 'origin/QA_4_1'