Refactor binary to root.