How can we share common utility classes across the bit bucket plugins?

Dear Team,

I have some utility java classes which are same across all the bitbucket plugins. Currently I have duplicated the same class in all the plugins. How the refactoring can be performed to relocate common code so it can be maintained in one place and shared by all the plugins.

Any suggestions or answers will be really helpful.