Backport Advisor cleanups from master

Signed-off-by: Michal Čihař <michal@cihar.com>