Move some files to new core package.