Refactoring for RLI analyses