Remove duplications from declared name detection