Consolidating the install and uninstall classes by using inheritance