Removed redundant cleanup logic in cons tool.