Refactors Asset Groups, including move to separate file.