Move Group Generation into Base Plugin. Remove dependency on ActiveRecord for algorithms.