remove duplication and make sonar happy.