Fix StyleCop validation warnings