Utilities for refactoring and upgrading Ruby code based on ASTs