I'm not sure of understanding why a class method, getting driver.metasploit_instance as parameter is used here. Just asking, obviously it works :)