Refactoring directory structure to a hardware core package.