Collapse class visitior into mojo class discoverer