Eliminate pointless exception of move-method refactoring