Refactoring for excluding brakeman issues.