Fix build breakage due to CodeNarc violations