Move explore-specific code to its class