Move install_expects_method() and uninstall_expects_method() to class Expects.