Remove duplicate code by making hierarchy between Indy and Basic interpreting visitors.