Correctly identify refactoring targets from cabal file