I removed most of the guards, I left them only for ExtractLocal and ExtractMethod. A more useful guard would include checking if the refactoring can be applied but I think that is too slow without the integration of scala-search.