refactor: command plugins use demands mechanism.

See dnf commit 8830a1c.