Remove core classes from generic library and move to core of abrightcms