Fix CodeNARC violations.