Refactor kernel assets.