extract module method redefinition check to ruby features, tm