[CLEANUP] Move the visited nodes and their styles into fields.