Fix codenarc violation: Unnecessary def
Add custom CodeNarc rule ConsecutiveBlankLines