Use Metasploit::Model::Module::Ancestor and traits

[#50752269]