Refactoring some pieces from Brakeman to StaticAnalyzer module