Refactor out dead code and files.