Fix issue with duplication code metric