REFACTOR: Don't use `Discourse.Capabilities`, instead use injection.
Also fix broken test. /cc @Sam