Moved logic into Groupdate::Magic class