Refactor debug build.