Preparations to replace opening book with rewrite