Refactor context menu manager to work as a mixin instead of an application module