Abstract parts of ore generation to core package.