Is there a GroupManager class common to JIRA and Confluence

Jira uses com.atlassian.jira.security.groups.GroupManager and Confluence uses com.atlassian.user.GroupManager.

I’m writing a plugin based on group management and I would really like to only write one, not one for Jira and one for Confluence.